Compatibility issues with saving Word 2010

Hi,

Please see the following code snippet. My goal is to generate a Word 2010 file. The resulting file looks like a Word 2010 document, however, it’s set with Compatibility options as: “Lay out this document as if created in Microsoft Word 2002”. How do I make the resulting docx file a regular Word 2010 file with all compatibility layout options checked off?

Document doc = new Document();

OoxmlSaveOptions saveOptions = new OoxmlSaveOptions( SaveFormat.DOCX );
saveOptions.setCompliance( OoxmlCompliance.ISO_29500_2008_TRANSITIONAL );

doc.save( “c:/document.docx”, saveOptions );

Thanks,

Natasa

Hi Natasa,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same problem on my side. For the sake of correction, I have logged this problem as WORDSNET-7748 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,

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


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