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

Free Support Forum - aspose.com

Summary links are not blue


Since version Word 22.11, the links present in the summary are no longer blue or underlined.
Can you let me know if this is normal operation or regression?
If this is normal operation, has an option been added to retain the blue color?

element.zip (13.1 KB)

@ISIWARE This is not a regression. The behavior has been changed according to WORDSNET-24113 in 22.11 version of Aspose.Words. TOC items are now exported to HTML with the same formatting as they look in MS Word. Unfortunately, there is no option to disable this new behavior. I will consult with the development team regarding this.
For now, you can explicitly set the required formatting to TocN styles to get the desired output:

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

StyleIdentifier[] tocStyles = new StyleIdentifier[]

foreach (StyleIdentifier identifier in tocStyles)
    Style toc = doc.Styles[identifier];
    toc.Font.Color = Color.Blue;
    toc.Font.Underline = Underline.Single;


@ISIWARE After consultation with development team we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-24906

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

However, we do not plan to change the current behavior of Aspose.Words, since MS Word behavior seems to be wrong. We will consider adding an option to export TOC items like MS Word does.

Thank you for this quick feedback.
We have informed our customer of this development.

1 Like