Lines and rectangles are exported by default (appropriate options are set as true). Lines and rectangles are often used in JasperReports as borders and other decorative items that overlap or surround other report elements. Aspose.Words for JasperReports exports reports to Microsoft Word documents in flow layout mode (which is default), i.e. consisting of “normal” inline paragraphs and tables. Flow layout does not support overlapping items (as well as Z-order at all), so exporting lines and rectangles laying on top of other elements would end up with an incorrect output layout in some cases.
In this case, you may want to try disabling the export of lines and rectangles, especially if in your reports they are used not as stand-alone elements.
To disable the export of lines, use the EXPORT_LINES parameter.
JasperReports:
[Java]
import com.aspose.words.jasperreports.*;
AWDocExporter exporter = new AWDocExporter();
exporter.setParameter(AWExporterParameter.EXPORT_LINES, false);
exporter.exportReport();
JasperServer:
[XML]
<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">
<property name="exportLines" value="false"/>
</bean>
To disable the export of rectangles, use the EXPORT_RECTANGLES parameter.
JasperReports:
[Java]
import com.aspose.words.jasperreports.*;
AWDocExporter exporter = new AWDocExporter();
exporter.setParameter(AWExporterParameter.EXPORT_RECTANGLES, false);
exporter.exportReport();
JasperServer:
[XML]
<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">
<property name="exportRectangles" value="false"/>
</bean>