简体   繁体   中英

Google Spreadsheet - Write to Blank Worksheet

I'm creating a new worksheet in a Google Spreadsheet using the C# library. After creating the worksheet, I want to write to it. I don't have a LocalName, since it's a new sheet with no header. Has anybody done this before?

newRow.Elements.Add(new ListEntry.Custom
{
    Value = value,
    LocalName = local
});

For new worksheet, I would suggest using the Cell based feed to add the first row: https://developers.google.com/google-apps/spreadsheets/#changing_contents_of_a_cell

Simply use the indexes A1 to A{N} to add the header and continue using the list based feed as you used to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM