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?
tia
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?
tia
2 Answers:
Posted on July 19, 2006 at 11:07am
Hi,
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
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
Code: |
<br /> jasperPrint.getPages().size()<br /> </td></tr></tbody></table><br /> <br /> I hope this helps.<br /> Teodor |