Page Breaks

Normal Page Breaks

You can change the page breaks inserted to regular (not section) breaks by using the following parameter:

JasperReports

Java

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

JasperServer

XML

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

No Page Breaks

You can instruct the exporter to avoid any use of page breaks (so that the report contents are simply exported continuously) by using the following parameter:

JasperReports

Java

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

JasperServer

XML

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