Aspose.Words for JasperReports supports three ways page breaks are inserted between document pages:
The "section breaks" mode is chosen as default because there may be headers and footers throughout the document that contain different data. Microsoft Word requires different headers/footers should be placed in different sections.
You can change the page breaks inserted to regular (not section) breaks by using the following parameter:
JasperReports:
import com.aspose.words.jasperreports.*;
AWDocExporter exporter = new AWDocExporter();
exporter.setParameter(AWExporterParameter.PAGE_BREAKS, AWExporterParameter.PAGE_BREAKS_NORMAL);
exporter.exportReport();
JasperServer:
<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">
<property name="pageBreaks" value="0"/>
</bean>
You can instruct the exporter to avoid any usage of page breaks (so that report contents are simply exported continuously) by using the following parameter:
JasperReports:
import com.aspose.words.jasperreports.*;
AWDocExporter exporter = new AWDocExporter();
exporter.setParameter(AWExporterParameter.PAGE_BREAKS, AWExporterParameter.PAGE_BREAKS_NONE);
exporter.exportReport();
JasperServer:
<bean id="aw_exportParameters" class="com.aspose.words.jasperreports.AWExportParametersBean">
<property name="pageBreaks" value="2"/>
</bean>
Note that in these modes, since the generated document consists of one section, only first pair of header and footer will be exported.