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.

Tue Feb 25, 2020 4:33 pm

Loading document using Spire.Doc.
With the latest available version - 8.2.9.
After loading I call only 'UpdateTableOfContents' method of the document, and save it.
As a result, the Table of Contents gets messed up.

Image - before updating ToC
Image - after updating ToC
Code: Select all
            var templateDoc = new Document(templateDocument, FileFormat.Auto);
        templateDoc.UpdateTableOfContents();
            var result = new MemoryStream();
            templateDoc.SaveToStream(result, templateDoc.DetectedFormatType);
            return result;

This is the code snippet. What am I doing wrong?

erik.martirosyan
 
Posts: 6
Joined: Tue Feb 25, 2020 4:19 pm

Wed Feb 26, 2020 1:53 am

Hello,

Thanks for your inquiry.
I simulated a Word file and tested your case but didn't reproduce your issue. To help us better investigate it, please provide your input file as well as your output file. You could upload here or send them to us(support@e-icbelue.com) via email. Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1084
Joined: Tue Jul 09, 2019 2:22 am

Tue Mar 03, 2020 7:14 am

Hello,

Greetings from E-iceblue.
How is your issue going? Could you please provide further information to help us investigate it?
Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1084
Joined: Tue Jul 09, 2019 2:22 am

Tue Mar 03, 2020 2:28 pm

Hi,

I was working with table of contents and actually found couple problems.

When I try to update TOC of this document, System throws 'Input string was not in a correct format.' exception.
In the attached archive you can find 'TOC_Shortened' to reproduce the issue. Just run the code from initial post.

When I try to update this document, the TOC text gets corrupted.
In the attached archive you can find 'TOC_InvalidText' to reproduce the issue. Just run the code from initial post.

And updating TOC is important part of our application. And we are really confused with these issues.
Without TOC update Spire.DOC is not really helpful for us ... And we already purchased the license.

Kind regards,
Erik Martirosyan
You do not have the required permissions to view the files attached to this post.

erik.martirosyan
 
Posts: 6
Joined: Tue Feb 25, 2020 4:19 pm

Wed Mar 04, 2020 3:00 am

Hello,

Thanks for your sharing.
Regarding the file "TOC_Shortened.docx", I have reproduced your issue and logged it into our bug tracking system with the ticket SPIREDOC-4002.
And as for the file "TOC_InvalidText.docx", I indeed noticed that the TOC text was displayed incorrectly after updating it. This issue has also been logged into our bug tracking system with the ticket SPIREDOC-4003.
If there are any updates to your issues, we will inform you immediately. Apologize for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1084
Joined: Tue Jul 09, 2019 2:22 am

Tue Mar 10, 2020 10:11 am

Hi,

When can we expect fixes for these issues? This is a big issue for us.

Kind regards,
Erik Martirosyan

erik.martirosyan
 
Posts: 6
Joined: Tue Feb 25, 2020 4:19 pm

Tue Mar 10, 2020 10:46 am

Hello,

Thanks for your following up.
For the issue SPIREDOC-4002, sorry our Dev team is still fixing it and I can't tell you an estimated time at this moment. I have urged our Dev team. We will inform you as soon as there is any update.
And for the issue SPIREDOC-4003, now it is fixed and under the testing phase. Once it passes the test, we will compile a hotfix for you ASAP.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1084
Joined: Tue Jul 09, 2019 2:22 am

Mon Mar 23, 2020 9:55 am

Hi, any updates?

When I can get the hotfix?

erik.martirosyan
 
Posts: 6
Joined: Tue Feb 25, 2020 4:19 pm

Mon Mar 23, 2020 10:33 am

Hello,

Thanks for your following up.
I just got news from our Dev team that both of your issues have been fixed and we prepare to release a new version within this week.
Once the new version is available, we will notify you immediately.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1084
Joined: Tue Jul 09, 2019 2:22 am

Mon Mar 23, 2020 1:46 pm

That's a good news!
Thanks!

erik.martirosyan
 
Posts: 6
Joined: Tue Feb 25, 2020 4:19 pm

Wed Mar 25, 2020 10:04 am

Hello,

Thanks for your patient waiting.
The hotfix (Spire.Doc Pack(hot fix) Version:8.3.15) is available now, welcome to download it from the following link.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/8.3.15

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1084
Joined: Tue Jul 09, 2019 2:22 am

Wed Mar 25, 2020 1:01 pm

Will test that! Thanks!

erik.martirosyan
 
Posts: 6
Joined: Tue Feb 25, 2020 4:19 pm

Thu Mar 26, 2020 1:34 am

Hello,

Ok, if you encounter any question during testing, please get back to us.
Wish you all the best.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1084
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Doc