Free Support Forum - aspose.com

File corruption saving DOCX file

When I save and open a DOCX file I am getting a corruption error.

If I open the document using WORD (without Aspose) the document opens fine.

I have tried using

OoxmlSaveOptions opt = newOoxmlSaveOptions(SaveFormat.Docx);
opt.Compliance = OoxmlCompliance.Ecma376_2006;
asposeDocX.Save(path, opt);

but the problem still remains.

Changing the same code to deal with a DOC file instead of DOCX works fine.

Strange thing I noticed was that if a footer is inserted into the docx file using Apose library, the document is displayed without error.

(see attachment for error dialog being displayed)

Best regards
Stephen

Hi Stephen,


Thanks for your inquiry. In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v13.2.0) from here and let us know how it goes on your side. If the problem still remains, please attach your input Word document here for testing. I will investigate the issue on my side and provide you more information.