Hi all, how can i get the total pages of a report than was on the JasperServer via web services?
2 Answers:
Posted on July 9, 2014 at 1:33pm
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.
Posted on July 10, 2014 at 11:41pm
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.