【问题标题】:How to insert headers in google spreadsheet?如何在谷歌电子表格中插入标题?
【发布时间】:2015-07-06 21:36:56
【问题描述】:

我正在尝试在电子表格中添加一个数组列表作为标题。我参考了 google api,我想插入行。但现在我需要一次性插入行数组。可以帮忙吗。

 // Create a local representation of the new row.
  ListEntry row = new ListEntry();
  row.Elements.Add(new ListEntry.Custom() { LocalName = "firstname", Value = "Joe" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "lastname", Value = "Smith" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "age", Value = "26" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "height", Value = "176" });

  // Send the new row to the API for insertion.
  service.Insert(listFeed, row);

【问题讨论】:

    标签: c# google-apps-script


    【解决方案1】:

    无法使用 listfeed 插入多行。改用 cellfeed。

    【讨论】:

    • hiii mandel 感谢您的回复。因为我是编程新手,而且我几乎没有接触过 C# .Net,所以如果你能以一小段代码为例解释一下。
    • 我不使用 C#,但我看到有可用的文档。如果遇到困难,请尝试编写代码并回帖。 google-gdata.googlecode.com/svn-history/r890/docs/folder41/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多