【发布时间】:2023-03-11 17:14:02
【问题描述】:
我正在尝试以这种方式使用电子表格 api C# v2.2.0.0 批量更新空单元格:
foreach (var csvline in csv)
{
var csvlineParsed = csvline.Split(';');
for (uint index = 0; index < csvlineParsed.Length; index++)
{
var cellEntry = new CellEntry(i, index + 1, csvlineParsed[index]);
cellFeed.Insert(cellEntry);
var cell = new CellEntry(i, index + 1);
cell.Id = new AtomId(string.Format("{0}/{1}", cellFeed.Self, "R" + i + "C" + index + 1));
cell.InputValue = csvlineParsed[index];
cell.BatchData = new GDataBatchEntryData("R" + cell.Row + "C" + cell.Column, GDataBatchOperationType.update);
batchRequest.Entries.Add(cell);*/
}
i++;
}
var batchResponse = (CellFeed) _service.Batch(batchRequest, new Uri(cellFeed.Batch));
但我有“缺少资源版本 id”错误
【问题讨论】:
标签: c# google-api google-spreadsheet-api