Compatability Mode

When I save a document in Docx, and open it in Word, Word opens the document in compatability mode, hence the document is not created as OpenXML. Why is that, and how do I fix it.

I use SaveFormat.Docx :

document.Save(fileName, SaveFormat.Docx)

Thanks

Weel, in fact it is Open XML, and when I inspect the xml, I notice that the following items from the original document are missing:

/word/endnotes.xml

/word/footer3.xml

/word/footnotes.xml

/word/stylesWithEffects.xml

Why are they removed, and is that causing the compatability mode issue?

Thanks

Hi Tobias,

Thank you for inquiry. First off, please try to use the latest version at your end and see if it resolves your issue. If it still doesn't resolve your issue then please share input document for further investigation. We'll take a closer look and guide you accordingly.

The version is .NET 11.2

I have attached input and output document and a screen shot.

Hi Henrik,

Thanks for your inquiry. In this case, you should just specify OOXMLCompliance options:
http://www.aspose.com/docs/display/wordsnet/OoxmlSaveOptions+Class
Here is code example:

Document doc = new Document(@"Test001\in.docx");

OoxmlSaveOptions opt = new OoxmlSaveOptions(SaveFormat.Docx);
opt.Compliance = OoxmlCompliance.Iso29500_2008_Transitional;

doc.Save(@"Test001\out.docx", opt);
I hope, this will help.
Best Regards,

Problem solved. Thanks :wink:

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


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