Summary links are not blue

Hello,

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?

Cordially
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[]
{
    StyleIdentifier.Toc1,
    StyleIdentifier.Toc2,
    StyleIdentifier.Toc3,
    StyleIdentifier.Toc4,
    StyleIdentifier.Toc5,
    StyleIdentifier.Toc6,
    StyleIdentifier.Toc7,
    StyleIdentifier.Toc8,
    StyleIdentifier.Toc9
};

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

doc.Save(@"C:\Temp\out.html");

@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.
Cordially

1 Like

Hi,

Have you added a new option to export table of contents items?

Cordially

@ISIWARE Unfortunately, implementation of this feature has been postponed and is not yet scheduled for development. Please accept our apologies for your inconvenience.

Hi,

Have you added a new option to export table of contents items?

Cordially

@ISIWARE I am afraid, there are no news regarding the issue. It is still postponed and are not scheduled for development.