Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Fri Oct 08, 2021 8:13 am

Calling Doc.UpdateTableOfContents() will throw

System.ArgumentOutOfRangeException
HResult=0x80131502
Nachricht = Length cannot be less than zero. Arg_ParamName_Name
Quelle = System.Private.CoreLib
Stapelüberwachung:
at System.String.Substring(Int32 startIndex, Int32 length)
at Spire.Doc.Fields.TableOfContent.ᜁ(TextRange A_0, String A_1)
at Spire.Doc.Fields.TableOfContent.ᜁ(IParagraph A_0, Boolean& A_1)
at Spire.Doc.Fields.TableOfContent.ᜁ(Body A_0, Boolean& A_1)
at Spire.Doc.Fields.TableOfContent.ᜄ()
at Spire.Doc.Document.UpdateTableOfContents()
...

Using Spire.Office 6.8.2

Thank you for assistance.

Marcus

MaSchuessler
 
Posts: 9
Joined: Thu Jul 22, 2021 6:34 am

Fri Oct 08, 2021 8:22 am

Hello Marcus,

Thanks for your inquiry.
At present, the latest version of Spire.Office is Spire.Office Platinum(Hotfix) Version:6.9.1, please have a try with this version. If the issue still occurs, please share your input file if any and full code to help us reproduce and investigate it. Thanks.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2635
Joined: Wed Jun 27, 2012 8:50 am

Fri Oct 08, 2021 8:53 am

amy.zhao wrote:Hello Marcus,

Thanks for your inquiry.
At present, the latest version of Spire.Office is Spire.Office Platinum(Hotfix) Version:6.9.1, please have a try with this version. If the issue still occurs, please share your input file if any and full code to help us reproduce and investigate it. Thanks.

Sincerely,
Amy
E-iceblue support team


Hi Amy,

Thanks for the advise, this helped!

Marcus

MaSchuessler
 
Posts: 9
Joined: Thu Jul 22, 2021 6:34 am

Fri Oct 08, 2021 8:55 am

Dear Marcus,

Glad to receive your prompt feedback.
Feel free to contact us if any issues.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2635
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron