InsertTableOfContents not displaying correctly

Hi,

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?

thanks

DocumentBuilder builder = new DocumentBuilder(doc);

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

doc.UpdateFields();

doc.UpdatePageLayout();

Hello,

Can you please share the document you are using.

Hi,

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,
kshinoj_k@rediffmail.com

Hello Shinoj,

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

Hi


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

Best regards,