I have an excel file contains around 10 sheets. About 30K data for each sheet with different formulas + 2 sheets with PivotTables.
When I used FreeSpire.XLS (12.7.0) and loaded file through LoadFromFile, it gave me following error:
Value was either too large or too small for an Int32.
2023-04-27 17:46:09.523 +08:00 [ERR] at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, ReadOnlySpan`1 value, TypeCode type)
at System.Int32.Parse(String s, IFormatProvider provider)
at spr(String A_0)
at spr(XmlTextReader A_0, Int32 A_1)
at spr(XmlTextReader A_0)
at spr()
at spr()
at spr()
at spr(spr‐ A_0)
at spr‐.(Stream A_0, sprᾮ A_1, Boolean A_2)
at spr‐.(String A_0, sprᾮ A_1)
at spr‐..ctor(String A_0, sprᾮ A_1)
at Spire.Xls.Core.Spreadsheet.XlsWorkbook..ctor(Object A_0, String A_1, ExcelVersion A_2)
at Spire.Xls.Workbook.LoadFromFile(String fileName, ExcelVersion version)
After several hours' investigation, I found it caused by 1 PivotTable, after refreshing it, the file became readable again.
I attached a mini file which can reproduce this issue.
Even if right now it's not a blocker issue, I don't want to spent hours next time to see other files with the similar issue.
Could you please support?
Thanks in advance