【发布时间】:2021-02-03 07:16:05
【问题描述】:
我正在测试 GemBox.Spreadsheet (47.0.1031),发现 R1C1 公式是 available in the latest versions。
但是,它是如何工作的?到目前为止,我的测试都失败了:
SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY");
var f = new ExcelFile();
var ws = f.Worksheets.Add("Sheet1");
f.CalculationOptions.PrioritizeR1C1ReferencingNotation = true;
for(int i = 0; i<50; i++)
{
ws.Cells[i, 0].Value = i + 1;
ws.Cells[i, 1].Formula = "=RC[-1] * 17";
}
f.Save(..path..);
甚至=R1C1 都不起作用,并且=RC1 被读取为绝对引用(RC 列第1 行),尽管我尝试使用PrioritizeR1C1ReferencingNotation 设置。
Excel 在打开文件并删除公式时显示 /xl/worksheets/sheet1.xml-Part 中的内容损坏警告。
【问题讨论】:
标签: c# excel gembox-spreadsheet