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

Free Support Forum - aspose.com

How to Generate Table of Content & List of Figures


How to Generate Table of Content & List of Figures (Index) using Aspose Word.

Thanks & Regards


Thanks for your request. You can insert the TOC into the document using InsertTableOfContents method. See the following links.
I hope that this will help you to solve your task.
Best regards.

Thanks For the Reply.

But i want to build the TOC Dynamically by reading the Current Document and i didnot find any solution for Table of Figures.

Kindly advise.

Thanks & Regards



  1. You can insert Table Of Figures using the following code. But you should update TOF manually in MS Word.
Document doc = new Document(@"406_105429_srinivasgoud\in.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertTableOfContents("\\h \\z \\c \"Picture\"");
  1. Aspose.Words document represents content and formatting of a document, not its layout into pages. That’s why you can’t generate dynamic TOC.

Please let me know if you would like to know anything else.
Best regards.