Free Support Forum - aspose.com

Need help for adding word toc

i want to generate the word document with toc, in toc i want to display the headers in toc, how can i display them, can you please help me here.

thanks a lot


This message was posted using Banckle Live Chat 2 Forum

Hi there,

Thanks for your inquiry. Please use DocumentBuilder.InsertTableOfContents method to insert a TOC (table of contents) field into the document. See the code example from here:
http://www.aspose.com/docs/display/wordsnet/Inserting+Document+Elements#InsertingDocumentElements-toc

Please let us know if you have any more queries.