Jump to content
We've recently updated our Privacy Statement, available here ×

How to paginate HTML exported report


Recommended Posts

I would like to show one page at time of my exported HTML report. Using the page naviation controls in my page, the user would be able to view other pages of the report.


I think it is possible to get one page of the report at a time by giving JRExporterParameter.PAGE_INDEX


My question is how do we find the max page?



Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic



What you need is shown in our /demo/samples/webapp sample provided with the project distribution files.

There is a "Page by Page" viewer for HTML.

The total number of pages for a JasperPrint document can be obtained by calling





I hope this helps.


Link to comment
Share on other sites

  • 1 year later...

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...