Saving a .docx as an intermediate .docx then saving it as a final .docm results in an invalid file

Hello,

We have a source .docx file that we save first as a working .docx file, then we save this working .docx as final .docm file. Unfortunatly, the final .docm cannot be opened by MS Word (“Xml parsing error”).

The same process (.docx saved as .docx saved as .docm) using MS Word results in a valid final .docm file.

  • Aspose.Words 22.1 (in fact since Aspose.Words 21.10, and it’s working fine using Aspose.Words 21.9)
  • Simple code used and input/output files are in attached zip archive.
    files.zip (53.4 KB)

Regards

@ISIWARE Thank you for reporting this problem to us. I have logged it as WORDSNET-23287. We will keep you informed and let you know once it is resolved.

Hello,
Did you have news about this problem? Because it’s causing a lot of problem on our side.
Regards

@ISIWARE The issue is already resolved in the current codebase. The fix will be included into the next 22.2 version of Aspose.Words. We will let you know once new version is released.

The issues you have found earlier (filed as WORDSNET-23287) have been fixed in this Aspose.Words for .NET 22.2 update also available on NuGet.