Optimize Footers

Contents
[ ]

In JasperReports:

Java

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

In JasperServer:

XML

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

You can also set explicit minimal distance between bottom-most element and bottom page margin. This is controlled by OPTIMIZE_FOOTER_DISTANCE parameter. By default, its value is 12.0. However, you can set any value between 12.0 and 36.0. Therefore, if the distance between bottom margin of the bottom-most element and page bottom margin is less or equal to this parameter value – then footer is optimized, otherwise nothing happens.

In JasperReports:

Java

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

In JasperServer:

XML

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