Aspose.Words

Compatibility Mode for DOCX output

You may notice that output DOCX documents are in compatibility mode when opening in MS Word 2010/2013. To overcome this, you can set compatibility mode explicitely using the DOCX_COMPATIBILITY parameter. By default, its value is 2007 that means the output document will be compatible with MS Word 2007. However, you can set the value to 2010 and therefore make the output document compatible with MS Word 2010/2013.

JasperReports:

[Java]

 

   import com.aspose.words.jasperreports.*;

 

   AWDocExporter exporter = new AWDocExporter();

   exporter.setParameter(AWExporterParameter.DOCX_COMPATIBILITY, 2010);

   exporter.exportReport();

 

 

JasperServer:

[XML]

 

<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">

    <property name="docxCompatibility" value="2010"/>

</bean>