Total pages of a report

Hi all, how can i get the total pages of a report than was on the JasperServer via web services?

l_urkia's picture
60
Joined: Jan 15 2014 - 6:13am
Last seen: 9 years 2 months ago

2 Answers:

I'm not exactly sure what you are asking, but I'm going to atake a wild stab in the dark and try to answer. If I am way off, please restate your question with more detail.

What I assume you are asking. - How do I print the total number of pages on a report?

Answer - There is a built in variable "$V{PAGE_NUMBER}" that you can use. When you get this element on your report, set the evaluation time to "Report" so it shows the total number of pages in the report.

jeffrey.hegeman's picture
Joined: May 20 2013 - 8:11am
Last seen: 7 years 8 months ago
That´s not what i´m asking, but anyway thanks for the help!
 
 
The scenario is that i have done a report in ireport, then i have  uploaded to the JasperServer. I have done a web app that gets the JasperServer utilities via web services (Rest API) to show that report (on HTML) in my app. The problem is that i show only one page and then i want to paginate it, but i don´t know how many pages the report  have. I have to show more than one different reports,so the page total number it´s not always the same.
l_urkia's picture
60
Joined: Jan 15 2014 - 6:13am
Last seen: 9 years 2 months ago
Feedback