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

Free Support Forum - aspose.app

Aspose Loses Latent Style Information when Saving (C#/.Net)

I have found an issue when saving a document using Aspose.Words where it loses LatentStyle information for 4 styles from documents created in the following version of Word.

Microsoft 365 Apps for business
Microsoft® Word for Microsoft 365 MSO (16.0.14026.20270) 64-bit

Replication Steps

  • Create a new Blank Document (File > New > Blank Document)

  • Save the Document (File > Save > Browse > C:\Temp\Blank.docx)

  • Run the following code

    var document = new Document(@"C:\Temp\Blank.docx");
  • The LatentStyle info for the following 4 Styles will be missing

    • Mention
    • Smart Hyperlink
    • Hashtag
    • Unresolved Mention

LatentStyle OpenXml in Blank.docx
image.png (3.2 KB)

LatentStyle OpenXml in Aspose.docx
image.png (2.5 KB)

This means that whenever saving with Aspose the styles reappear in the Style Pane
image.png (1.5 KB)

This topic has been moved to the related forum: https://forum.aspose.com/t/aspose-loses-latent-style-information-when-saving-c-net/230912