We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Table Of Contents is not coming correct


I am new to Aspose service. I am getting wrong Table of Contents when I call UpdateFields() method.

I am passing the path of WordML xml document in constructor of Aspose.Words.Document class. Its object contains all my contents which is in the document. After that when I call UpdateFields() method, I am getting Wrong table of contents. Below is my code.

 // Load the file for conversion.
                        Document doc = new Document(inputPath);

                    <span style="color: green;">// Save the document to PDF format.</span>
                    doc.Save(outputPath, <span style="color: rgb(43, 145, 175);">SaveFormat</span>.Pdf);</pre><pre style="background: white; color: black; font-family: Consolas; font-size: 13px;"> Using version</pre><pre style="background: white; color: black; font-family: Consolas; font-size: 13px;">How aspose service decides that particular node will come in Table of contents. I am getting wrong table of contents means I am getting only one node in table of content but the original document contains more then 30 TOC.</pre><pre style="background: white; color: black; font-family: Consolas; font-size: 13px;">Thanks in advance</pre>

Thanks for your inquiry. Please attach your input Word document and output PDF file showing the undesired behavior here for testing.We will investigate the issue on our end and provide you more information.

Best regards,

While using the latest version of Aspose.Words i.e. 14.2.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of your issue is WORDSNET-9944. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-9944) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.