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

Free Support Forum - aspose.com

How to generate Table Of Content

Hi,

I have merged multiple documents into one. Now I have to create Table of Content for this new document. How can I do it. Please help.

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 Table of Contents into the document

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 TOCfield so you should update fields inside the document manually (ctrl+A and F9). Also you can use macro to update fields. See the following link to learn more.

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

Best regards.