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 9:54 pm

Hello,

We are trying to update the table of contents of a document after making changes to it using Spire.Doc .NET. This specific document is around 52 pages when we finish making changes.

When we call doc.UpdateTableOfContents() after making required changes, this call takes around one and a half minutes to complete, which feels really slow. If we insert a TOC into this document in MS Word, it is nearly instant.

Is this slowness expected? Can it be sped up at all?

Thanks!

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

Mon May 17, 2021 9:11 am

Hello,

Thank you for your inquiry.
To help us investigate and solve your problem more quickly and accurately, please provide your input document and full testing code. You could attach the required information here or send to us via email ([email protected]). Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Tue May 18, 2021 8:48 am

Hello,

Thank you for your sharing.
I tested your case using the latest Spire.Doc Pack(hot fix) Version:9.4.18, but it only took around 9 seconds on my side. If you were not using the latest version, I recommend that you first give the latest one a try. If the problem still exists, please provide your test environment, such as OS Info (E.g. Windows7, 64bit) and region setting (E.g. China, Chinese), as well as your application type, such as Console app (.net framework 4.7.2). Thank you in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Tue May 18, 2021 2:12 pm

Hello Annika!

I have upgraded from the 9.3 release to the 9.4 release and this appears to have helped as things are quite a bit faster, still seeing times a bit slower than you have reported but I would like to deploy to our various test environments and see how things perform. I will keep you updated!

Thanks.

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

Tue May 18, 2021 3:33 pm

Our times have gone down from 1.5 min to around 15 seconds after upgrading. I would consider this resolved!!

Thanks!

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

Wed May 19, 2021 2:45 am

Hello,

Thank you for your feedback.
If you have other questions about using Spire.Doc in the future, please feel free to contact us.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc