Overlapping Items

Contents
[ ]

In flow layout, overlapping items cannot be converted preserving their original location or size because there is no such thing as Z-order in flow layout. However, Aspose.Words for JasperReports tries to export such items as close to the original as possible. It offers three methods of resolving overlapping items:

  • AsIs - Overlapping parts are passed to Aspose.Words without any changes (default).
  • Truncate - Overlapping parts are truncated.
  • Push - Overlapping items are pushed in appropriate directions.

The second method allows the preservation of the original position of report items and does not affect surrounding contents. However, it may corrupt the item’s appearance. If you are not satisfied with the AsIs method, you can try Truncate method or the Push method.

JasperReports:

Java

   import com.aspose.words.jasperreports.*;
   AWDocExporter exporter = new AWDocExporter();
   exporter.setParameter(AWExporterParameter.OVERLAP_RESOLUTION_METHOD, AWExporterParameter. OVERLAP_RESOLUTION_METHOD_PUSH_ITEMS);
   exporter.exportReport();

JasperServer:

XML

<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">
    <property name="overlapResolutionMethod" value="2"/>
</bean>