Free Support Forum - aspose.com

Table of Contents Example?

Do you have any examples of creating a document with a table of contents using vb.net and Aspose.words? If so, where would I find them? Thanks!

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

Thanks for your inquiry. Please see the following link to learn how to insert TOC using Aspose.Words.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/inserting-a-table-of-contents.html

But note that Aspose.Words doesn’t update TOC fields in the document. So you as a workaround you can update field manualy or use a macro. See the following link for more information.

http://support.microsoft.com/kb/832897

Best regards.