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
Thanks for your inquiry. Please see the following link to learn how to insert Table of Contents into the document
https://docs.aspose.com/words/net/working-with-table-of-contents/
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.
https://support.microsoft.com/en-us/topic/the-filename-field-does-not-automatically-update-when-you-open-a-document-in-word-de2bfb95-d990-1ced-a618-5ac0a2ec1be4
Best regards.