Jump to content
Changes to the Jaspersoft community edition download ×

Pagination when exporting to HTML


Recommended Posts


I'm new to JasperReports, and I have a problem with exporting to HTML:

I use iReport to create a report with subreports in it. When I export to HTML, the subreport table is separated when the output is larger than one page.

This is good if I export to PDF, but in HTML I would like to have my hole report in one piece.

Is there for example a way to expand the report page size variable.

I hope someone has a solution for my little problem.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Set few parameters in the JRParameter class

mainly the following parameters







else if ("html".equals(reportFormat))
JRHtmlExporter exporter = new JRHtmlExporter();
JRExporterParameter.JASPER_PRINT, filedReport);
JRExporterParameter.OUTPUT_FILE_NAME, oFName); exporter.setParameter(
JRHtmlExporterParameter.BETWEEN_PAGES_HTML, ""«»); exporter.setParameter(
JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...