Vb.net Aspose.Cells-ErrorCheckOptions
代码上方,用于在Excel中禁用Vb.net Aspose.Cells-ErrorCheckOptions,vb.net,error-checking,Vb.net,Error Checking,代码上方,用于在Excel中禁用ErrorCheckOption,但在运行时仍保留为enabled。下载excel表格后,如果双击单元格,单元格将显示为绿色(即文本格式) 你能建议其他的选择吗。 我已附上屏幕截图供您参考。我认为您可以尝试指定所需的单元格/区域范围,以便在工作表中设置错误检查选项: 例如 opt.AddRange(CellArea.CreateCellArea(0,0,1000,50)) 我是Aspose的开发者/传道者 Dim opts As ErrorCheckOptionC
ErrorCheckOption
,但在运行时仍保留为enabled。下载excel表格后,如果双击单元格,单元格将显示为绿色(即文本格式)
你能建议其他的选择吗。
我已附上屏幕截图供您参考。我认为您可以尝试指定所需的单元格/区域范围,以便在工作表中设置错误检查选项: 例如 opt.AddRange(CellArea.CreateCellArea(0,0,1000,50)) 我是Aspose的开发者/传道者
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)