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.
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

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”);
doc.Save(@“C:\Temp\out.html”);

I hope, this helps.

Best regards,