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
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:
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,
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)