Only show a portion of a live Google sheet

坚强是说给别人听的谎言 提交于 2019-12-13 03:46:21

问题


I want to embed a live Google Sheet inside of new google sites. works fine but I want to hide/remove the title row and column headers and just show the workspace area

I have tried the following iframe code ( below ) in New Google sites and it still displays titles, row and column headers

Could you tell me what I am missing?

<iframe width="100%" height="400" src="https://docs.google.com/spreadsheets/d/SHEET_id/edit?usp=sharing&amp;single=true&amp;widget=true&amp;headers=false"></iframe>

I have published to the web and used HTML embed parameters, however, HTML versions of the sheet take too long to update or it's unpredictable. The data is updated by a Google form.

<iframe width="100%" height="400" src="https://docs.google.com/spreadsheets/d/SHEET_id/edit?usp=sharing&amp;single=true&amp;widget=true&amp;headers=false"></iframe>

Sheet displays in its entirety. I can hide some elements in the app but rows and column headers remain.


回答1:


use &range=A3:C10 parameter in URL like:

<iframe src="https://docs.google.com/spreadsheets/d/1B56.../pubhtml/sheet?headers=false&gid=0&range=A3:C10" width="400" height="350"></iframe>

this will publish only the range A3:C10



来源:https://stackoverflow.com/questions/56772554/only-show-a-portion-of-a-live-google-sheet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!