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

Free Support Forum - aspose.com

Aspose.Words 15.9 breaks DOCX files

Hi,

when manipulating DOCX files with Aspose.Words 15.9 I have come across a situation where opening and saving a certain file breaks its format to the point where is cannot be opened with Microsoft Word anymore.

Please find attached an example, before.docx. This file can be normally opened and manipulated with my Microsoft Word 2013.

I open and save the file with the following code:

var doc = new Aspose.Words.Document(“before.docx”);
doc.Save(“after.docx”, SaveFormat.Docx);

The resulting file, after.docx, is also attached. The file after.docx is corrupted and cannot be opened. When I try to open it with Microsoft Word 2013, I get the following error:

We’re sorry. We can’t open after.docx because we found a problem with contents.
Details:
No error detail available.
Location: Part: /word/document.xml, Line: 1, Column: 0

I’m reasonably certain the cause of this error is the shape object in before.docx. However, we need to keep it there, and we also need the file to remain usable after we edit it. We’re looking forward to your feedback.

Hi Eva,

Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-12551. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-12551) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.