Question:
How can I get the number of total pages from a report?
Answer:
Please refer to the jsfiddle sample below
It illustrates the page navigation option.
It doesn't have the last option but if you see initial code there is a variable totalPages which has the last page value stored.
You can read more about totalPages property in TIBCO JasperReports® Server Visualize.js Guide:
If the fiddle above is not available for some reasons, please find the informaton about
- javascript tab
- html tab
- javascript external libraries in the attachment to this article
Recommended Comments
There are no comments to display.