Needs help to read TOC section of a word document

Hi,

Do we have any method to read TOC section of a word document using Aspose.Words. I am using version 3.7.0.0.

I require to save the TOC section information while reading an uploaded word document, then using a class which inherits from DocumentVisitor, i would read the information in paragraphs of the word file and save in a database. while when i recreate the word file, i need to paste the earlier copied TOC section.
Any advice on choosing some alternate approach is also solicited.

How can i detect a TOC while reading a word file, so that i can skip it and read the other content (present in paragraphs).

How can i create a TOC of a document created by using Aspose.Words.DocumentBuilder class.

Regards
Vivek Bahl

Have you tried to search Aspose.Words documentation with TOC keyword? Try this and you will find some useful articles on this together with some code examples.

I would also recommend using our DocumentExplorer source code demo to find out how any particular word document is represented in Aspose.Words object model.