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 Apr 08, 2025 2:01 pm

SpireException: Arg_IndexOutOfRangeException: at Internal.Runtime.CompilerHelpers.ThrowHelpers.ThrowIndexOutOfRangeException() + 0x24 at sprffo.sprf(XmlTextWriter) + 0x244a at sprffo.spry(XmlTextWriter) + 0xd0 at sprffm.sprb(sprfhn) + 0xd3 at sprffm.spro(sprfhn) + 0x25 at sprffm.spry() + 0x52 at sprffm.sprag() + 0x16e at sprd30.spra(Stream, spre2k) + 0x4f2 at Spire.Xls.AOT.NLWorkbook.Workbook_SaveToStream(IntPtr, IntPtr, IntPtr) + 0x66

Hello, facing this error while saving to stream (SaveToStream) , the code runs fine but it throws this error when it tries to save it. How to fix this issue?

KallindSoni
 
Posts: 26
Joined: Tue Apr 08, 2025 1:56 pm

Wed Apr 09, 2025 2:06 am

Hello,

Thansk for your inquiry.
To help us investigate your issue more accurately, could you provide us with your test code and test files (if any)? You can upload them as attachments or send them to this email [email protected]. Thanks in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Mon Apr 14, 2025 12:16 pm

Hello
In relation to the previous query sharing a xlsx file which has this issue.

About code even trying to load the file and save it without any changes the issue arises sharing that code snippet as well, using spire xls python.

Code:
wb = Workbook()
wb.LoadFromFile('test/Test_Spire.xlsx')

wb.SaveToFile('test/demo.xlsx')
Attachments
Test_Spire.zip
(547.7 KiB) Downloaded 401 times

KallindSoni
 
Posts: 26
Joined: Tue Apr 08, 2025 1:56 pm

Tue Apr 15, 2025 6:24 am

Hello,

Thanks for your reply.
I used your files and reproduced the issue you mentioned. I have logged this issue to our tracking system with the ticket SPIREXLS-5783. Our development team will further investigate. Once there is any progress, we will inform you as soon as possible.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Tue Apr 22, 2025 1:42 pm

Hello William,

Is there any update on the issue? Please let me know.
Thank you.

KallindSoni
 
Posts: 26
Joined: Tue Apr 08, 2025 1:56 pm

Wed Apr 23, 2025 9:23 am

Hello,

Thanks for your following up.
We have adjusted the internal code. To ensure the stability of the product, we need further testing. Once the test is passed, we will release the official version and notify you in time. Thank you for your understanding.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Mon May 19, 2025 7:24 am

Hi William,
It's been almost a month any updates on the resolution ?

Please let me know thank you.

KallindSoni
 
Posts: 26
Joined: Tue Apr 08, 2025 1:56 pm

Mon May 19, 2025 11:44 am

Hello,

Thansk for your following up.
Your problem has been fixed. The official version should be released before the end of the month. I will notify you after the release.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Wed Jun 04, 2025 1:47 am

Hello,

Thanks for your patience.
Our latest release of Spire.XLS for Python Version: 15.5.0 fixes the issue SPIREXLS-5783. Welcome to update and test.
Website link:https://www.e-iceblue.com/Download/Spire-XLS-Python.html

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.XLS