Aspose.Cells - ErrorCheckOptions

时间:2014-11-14 06:09:03

标签: vb.net error-checking

Dim opts As ErrorCheckOptionCollection = workBook.Worksheets(0).ErrorCheckOptions
Dim index As Integer = opts.Add()
Dim opt As ErrorCheckOption = opts(index)
opt.SetErrorCheck(ErrorCheckType.TextNumber, False)

代码上方,用于在Excel中禁用ErrorCheckOption,但在运行时,它仍保留为已启用。下载excel表后,如果我们双击单元格,单元格会出现绿色(即文本格式) 你可以建议任何替代方案。 我附上了截图供您参考。

1 个答案:

答案 0 :(得分:0)

我认为您可以尝试指定所需的单元格/区域范围,以便在工作表中设置错误检查选项: 例如 opt.AddRange(CellArea.CreateCellArea(0,0,1000,50))

我是Aspose的开发人员/传播者。