Find PageBreaks introduced by the exporter

Hello,
How can i find the page breaks introduced by the aspose.words.jasperreports exporter using aspose.words.java? The same for empty paragraphs added before such a page break.
Is it possible to configure the exporter to not add page breaks that are not contained by the JasperReport?

Many thanks for your help.
Dan

Hi Dan,

Thanks for your inquiry.

dan.albutiu:

How can i find the page breaks introduced by the aspose.words.jasperreports exporter using aspose.words.java? The same for empty paragraphs added before such a page break.

An explicit page break can be caused by many different things in a document:


  • A page break character. This is represented in a document by the page break character ControlChar.PageBreakChar.
  • A Section which is set to begin on a new page (by the section’s PageSetup.SectionStart to SectionStart.NewPage).
  • A Paragraph with ParagraphFormat.PageBreakBefore set. This forces a page break before the paragraph.

Please read following documentation link for your kind reference.
http://www.aspose.com/docs/display/wordsjava/How+to++Remove+Page+and+Section+Breaks

dan.albutiu:

Is it possible to configure the exporter to not add page breaks that are not contained by the JasperReport?

You can instruct the exporter to avoid any use of page breaks (so that the report contents are simply exported continuously) by using AWExporterParameter.PAGE_BREAKS_NONE. Please read following documentation link for your kind reference.
http://www.aspose.com/docs/display/wordsjasperreports/Page+Breaks