Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri May 14, 2021 10:03 pm

Hello,

We have one specific document that we are trying to edit with Spire.Doc .NET but running into an issue. We can load it into a Document object successfully using LoadFromStream, but then the first time we call doc.GetText(), following occurs:

System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection.
at System.ThrowHelper.ThrowArgumentOutOfRange_IndexException()
at Spire.Doc.Collections.ParagraphItemCollection.get_Item(Int32 index)
at sprᶻ.ᜀ(ParagraphItemCollection A_0)
at sprᶻ.ᜀ(IBody A_0)
at sprᶻ.ᜀ(ITable A_0)
at sprᶻ.ᜀ(IBody A_0)
at sprᶻ.ᜀ(ITable A_0)
at sprᶻ.ᜀ(IBody A_0)
at sprᶻ.ᜀ()
at sprᶻ.ᜀ(Document A_0)
at Spire.Doc.Document.GetText()

How can we troubleshoot what is happening?

Thanks!

mike.woolsoncroft
 
Posts: 14
Joined: Tue May 05, 2020 2:11 pm

Mon May 17, 2021 6:11 am

Hello,

Thanks for your inquiry and sorry for the late reply as weekend.
To help us better reproduce your issue and solve it, please provide us with this specific document. You could send it to us via email (support@e-iceblue.com). Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue May 18, 2021 1:53 am

Hello,

Thanks for providing your input file via email.
I tested your case and did reproduce your issue. I have logged it in our bug tracking system with the ticket SPIREDOC-6010. We will inform you as soon as there is any progress. Apologize for the inconvenience caused.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue May 18, 2021 2:14 pm

Thank you Brian! I will await further updates!

mike.woolsoncroft
 
Posts: 14
Joined: Tue May 05, 2020 2:11 pm

Fri Jun 04, 2021 11:28 am

Hello,

Greetings from E-iceblue!
Glad to inform you that we just released Spire.Doc Pack Version:9.6 which fixes your issue, please download it from the following links to test on your side. Looking forward to your test result.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/9.6.0

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Jun 15, 2021 11:01 am

Hello,

How is your issue now? Does this hotfix solve your issue? Could you please give us some feedback at your convenience?

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Jul 20, 2021 8:58 pm

Hello,

Very sorry for the extended delay in replying. Our QA team has reported that the issue is no longer occurring as of version 9.7.3, so yes the issue has indeed been solved. Thank you for the help!

mike.woolsoncroft
 
Posts: 14
Joined: Tue May 05, 2020 2:11 pm

Wed Jul 21, 2021 1:18 am

You are welcome.
If you encounter any issues related to our products in the future, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc