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

Free Support Forum - aspose.com

Regarding TOC

I have shared sample document to generate TOC in document format test567.docx (13.9 KB)…I have shared format document for TOC Is that possible to generate

If possible how to do in csharp code

@siva1950 Please see our documentation to learn how to work with TOC in Aspose.Words:
https://docs.aspose.com/words/net/working-with-table-of-contents/

@alexey.noskov I have attached sample document regarding TOC .In image it shows 1 alone show separate toc.
can You help me on that which scenario it has been happend or any c# code changes should I need to change for this .

Kindly give some understandanding for Toc generated this document

@siva1950 To avoid this a paragraph break should be inserted after the TOC. Please see the following code:

builder.InsertTableOfContents("\\o \"1-3\" \\h \\z \\u");
builder.Writeln();
builder.InsertBreak(BreakType.PageBreak);