Hello.
I am saving a document with aspose using the following code. However, the resulting document is still in compatibility mode (word shows Word 2007). I need help to solve this problem.
I am using aspose 16.2.0.
OoxmlSaveOptions options = new OoxmlSaveOptions(SaveFormat.DOCX);
options.setCompliance(OoxmlCompliance.ISO_29500_2008_TRANSITIONAL);
doc.save("D:\teste.docx", options);
Hi Alessandra,
Thanks for your inquiry. The CompatibilityOptions.OptimizeFor method allows to optimize the document contents as well as default Aspose.Words behavior to a particular versions of MS Word. Please use this method to prevent MS Word from displaying “Compatibility mode” ribbon upon document loading. Hope this helps you.
doc.getCompatibilityOptions().optimizeFor(MsWordVersion.WORD_2007);
doc.save("D:\\teste.docx", options);
Thank you, it has worked.