Google表格嵌入URL文档 [英] Google sheet embed URL documentation

查看:103
本文介绍了Google表格嵌入URL文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道Google电子表格的嵌入URL参数是否有任何官方文档吗?

Does anyone know if there is any official documentation for google spreadsheet embed URL paramaters?

也就是说,假设Google表格中的嵌入URL是这样的:
https:/ /docs.google.com/a/aicr.org/spreadsheet/pub?key=0AhExuVBhVYT1dGxxejBmUHAzYUhGb25veTRkdW1YekE&single=true&gid=1&output=html&gridlines=false

That is, given an embed URL from Google Sheets like this: https://docs.google.com/a/aicr.org/spreadsheet/pub?key=0AhExuVBhVYT1dGxxejBmUHAzYUhGb25veTRkdW1YekE&single=true&gid=1&output=html&gridlines=false


  1. 自变量有什么作用,

  2. 还有哪些可用的自变量,默认情况下不包含这些自变量?

经过大量挖掘和搜索,我发现:

After much digging and searching, I have found:


  • 有些参数似乎什么也没做(& single = true,& embedded = true)

  • 某些参数在Google搜索结果中被自信地声明,但没有用(& gridlines = false)

  • 某些参数s似乎没有出现在我完成的任何搜索中(& output = csv)

...,并且没有搜索已经完成的操作甚至产生了几乎可以接近的任何结果:

... and no search I have done has produced anything even remotely approaching either of:


  • 由Google维护的,用于嵌入URL的官方文档

  • 用于解析嵌入URL的代码的代码视图

通过反复试验,我发现:

By trial and error I have found:


  • & key = [ID]

    • google sheet ID


    • true:??? (当我仅发布一张工作表时出现)

    • false:???


    • 工作表ID ??? (当我仅发布一张工作表时出现)

    • 当您的整个Google工作表文档都已发布到网络上(而不是


    • 指定要包含的单元格范围,例如 B1:C20

    • 如果 widget =为假或不存在,则禁止显示通常的Google标头&页脚信息

    • 如果已散布的范围大于已发布的工作表,则仅显示该工作表,同时仍保留页眉和页脚。


    • true:???

    • false:

    • 该项目包含在google表格中提供的嵌入代码中(设置为 true),但似乎没有任何作用。


    • true:显示整个共享项目。覆盖 range =。不包括Google免责声明页脚。

    • false:在输出中包括Google免责声明页脚(除非还存在'range =')


    • html(默认值):在包含以下代码的代码中以html表形式输出Google跟踪代码

    • txt:将指定范围或工作表的内容输出为制表符分隔的文本

    • csv:输出为csv


    • 这显然是曾经可以工作,但对我不起作用。

    • 要抑制嵌入工作表中的网格线,我在所有单元格上设置了边框,然后对边框进行着色以匹配工作表的背景颜色(例如,白色背景工作表上的纯白色边框)。

    • this apparently used to work but doesn't work for me.
    • To suppress gridlines in embedded sheets I set borders on all cells, then color the borders to match the sheet's background color (eg solid white borders on a white-background sheet).

    推荐答案

    以下是我发现的一些参数Google文档(感谢Joel http://obstruction.tumblr.com/post/60784440737/google-docs-url-parameters-rm-minimal-rm-full ):

    Here are some of the parameters I found for Google Docs (thanks goes to Joel http://obstruction.tumblr.com/post/60784440737/google-docs-url-parameters-rm-minimal-rm-full):

    Google文档的URL参数:

    Google Docs URL parameters:

    rm=minimal
    rm=full
    rm=embedded
    rm=demo
    rm=(render mode)
    
    ui=2 (select the interface version)
    chrome=false (full screen mode)
    frameborder=(size of border)
    q=(Whatever) Search Query
    
    gid=24 (Whis sheet you want to display)
    widget=false
    single=true
    range=A2:AA26 Output=html
    format=(export spreadsheet)
    format=xlsx
    format=csv
    
    widget=false
    width=(width)
    height=(height)
    viewer?
    start=
    channel=
    ibd=
    client=
    

    这篇关于Google表格嵌入URL文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆