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

Free Support Forum - aspose.com

Manually build Table Of Contents

Right now, I am using the InsertTableOfContents method to create the TOC for a document, via:

builder.InsertTableOfContents("\\o \"1-3\" \\h \\z \\u");

I programmatically insert "Heading 1" styled headings which are used as TOC entries.

My project manager does not want to include "Heading 1" entries in the document. He would like for me to manually build the TOC. Does your API support manually building a TOC? If not, is there a way to use the InsertTableOfContents method, UpdateFields, and UpdatePageLayout methods - and, then delete all "Heading 1" entries?


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I think that you can use TC fields (TOC entry). Please see the following link:

Best regards.

Worked great - thanks!