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

Free Support Forum - aspose.com

Get Table of Contents entries as links in html

I can't find a way to get each entry in a Table of Contents (ToC) to link internally to a place in the html-page. This is the behaviour from Microsofts Word2html.

The only config I've found is the HtmlSaveOptions.ExportTocPageNumbers.

Would like ExportTocEntriesAsLinks :)

For longer documents the ToC has a value in html-format as a quick navigation.

Hi Jörgen,

Thanks for your inquiry.

Please upgrade to the latest version of Aspose.Words (13.6.0) from the following link.

By default, the latest version of Aspose.Words exports TOC entries to HTML as linked content. You can simply use the following codes snippet:

Document doc = new Document(@“C:\Temp\in.docx”);

I hope, this helps.

Best regards,