Lines and Rectangles

Skip to end of metadata
Go to start of metadata
Lines and rectangles are not exported by default. The reason is that 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 extremely corrupted result.

However, you may want to try enabling the export of lines and rectangles, especially if in your reports they are normally used as stand-alone elements.

To enable 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, true);
   exporter.exportReport();
 
XML
<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">
    <property name="exportLines" value="true"/>
</bean>
 
To enable 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, true);
   exporter.exportReport();
 
XML
<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">
    <property name="exportRectangles" value="true"/>
</bean>
 
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.