执行excel文件导入时系统报异常:System.Runtime.InteropServices.COMException (0x800A03EC): 异常来自 HRESULT:0x800A03EC.
获取单元格值得时候会报该异常.
异常代码:
string cellValue = ExcelHelper.GetCellValue(RowIndex, ColIndex);
我取值的时候没有加非空验证,导致ColIndex = 0,代码执行的时候报此异常
执行excel文件导入时系统报异常:System.Runtime.InteropServices.COMException (0x800A03EC): 异常来自 HRESULT:0x800A03EC.
获取单元格值得时候会报该异常.
异常代码:
string cellValue = ExcelHelper.GetCellValue(RowIndex, ColIndex);
我取值的时候没有加非空验证,导致ColIndex = 0,代码执行的时候报此异常