Toc update issue when using dot file

Hello,

Using Aspose 18.10 I’m trying to create a document from a dot file.
This dot file contains the definition for the table of contents.

Although I update the TOC when adding a heading to the document the TOC is shown incorrectly.

WrongTOC.png (323 Bytes)

Only after a manual update in Word it is shown correctly (using ‘update entire table’).

CorrectTOC.png (306 Bytes)

Attached is sample project where this behavior can be reproduced.

TestTOC.zip (33.7 KB)

When generating the document without using a dot file I noticed that the TOC is shown correctly.
This can be reproduced with the sample project by using ‘Initialise’ instead of ‘ReadDotFile’.

It seems the issue has to do with initializing the document from the dot file.

Kind regards,
Paul

@sofonit

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-17654. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-17654) have been fixed in this Aspose.Words for .NET 18.12 update and this Aspose.Words for Java 18.12 update.