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

Free Support Forum - aspose.com

InsertTableOfContents not displaying correctly


I'm using the following code to insert a table of contents.

However, there seems to be something amiss, some times the table of contents does not display chapter 1, has this happened before?


DocumentBuilder builder = new DocumentBuilder(doc);

Aspose.Words.Fields.Field f = builder.InsertTableOfContents("\\o \"1-3\" \\h \\z \\u");




Can you please share the document you are using.


We are also trying to create POC for word document using Aspose and .Net. And we are facing the same issue that you posted. As per your description your are getting this problem only sometimes. But in our case Chapter1 is missing in every time.

Did you solved your issue…? If so could you please share your knowledge…?

Thanks and regards,

Hello Shinoj,

Please share the documents with us which is having this TOC Problem.


Thanks for your request. Your request is answered here:
<a href="https://forum.aspose.com/t/54233

Best regards,