Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Tue Oct 22, 2019 11:19 am

Hello,
We use version 7.11.49 and got some troubles with loading an XLSX file (see in attachments).

Code: Select all
  using (FileStream fileStream = File.OpenRead(@"C:\Users\Downloads\test.xlsx"))
            {
                var _workbook = new Workbook();
                try
                {
                    _workbook.LoadFromStream(fileStream, ExcelVersion.Version2010);
                }
                catch (Exception ex)
                {
                    _workbook = null;
                }
            }


When the file is loading to the workbook we catch an exception "Value was either too large or too small for an unsigned byte." but then after some time the application crashes with null reference exception

at spr626.1(XlsWorksheet A_0, Dictionary`2 A_1)
at Spire.Xls.Core.Spreadsheet.XlsWorksheet.ParseData(Dictionary`2 dictUpdatedSSTIndexes)
at Spire.Xls.Core.Spreadsheet.XlsWorksheetBase.ParseData()
at Spire.Xls.Core.Spreadsheet.XlsWorksheet.40()
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.ClearAll()
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.DisposeAll()
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.Close(Boolean SaveChanges, String Filename)
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.Close(Boolean saveChanges)
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.Close()
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.Finalize()

There are 2 solutions how to avoid this: 1) upgrade to the latest version 2) open file and save it again
Could you tell me what the problem with the file?
Attachments
test.zip
(33.79 KiB) Downloaded 198 times

itischenko
 
Posts: 3
Joined: Tue Oct 22, 2019 11:01 am

Wed Oct 23, 2019 1:49 am

Hi,

Thanks for your inquiry.
I have reproduced the issue and logged it in our bug tracking system. We will let you know once there is any update.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Nov 05, 2019 6:20 am

Hi,
Are there any updates?
In addition, in version 9.10.12 it fails with Overflow exception.

itischenko
 
Posts: 3
Joined: Tue Oct 22, 2019 11:01 am

Tue Nov 05, 2019 6:39 am

Hi,

Note the version 9.10.12 doesn't solve your issue. The fix of your issue will be included in next version. Once the hotfix is released, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Nov 08, 2019 10:00 am

Hi,

Glad to inform you that the Overflow exception issue is solved in Spire.XLS Pack(Hotfix) Version:9.11.2.
Our website: https://www.e-iceblue.com/Download/down ... t-now.html
NuGet: https://www.nuget.org/packages/Spire.XLS/9.11.2

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Nov 13, 2019 9:18 am

Hi,

Greetings from E-iceblue.
Do you use the hotfix? Has your issue been resolved?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Nov 19, 2019 5:56 am

Yes, it's all good now.
Thank you.

itischenko
 
Posts: 3
Joined: Tue Oct 22, 2019 11:01 am

Tue Nov 19, 2019 7:09 am

Hi,

Thanks for your feedback.
If you need further assistance, please feel free to contact us.
Wish you all the best.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1187
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.XLS