I have added the footer "Page x of x" to my report, but the PAGE_COUNT doesn't seem to work, maybe because I have many subreports?? I get:
Page 1 of 1
Page 2 of 0
Page 3 of 0
Page 4 of 0
Any ideas? Thanks!
I have added the footer "Page x of x" to my report, but the PAGE_COUNT doesn't seem to work, maybe because I have many subreports?? I get:
Page 1 of 1
Page 2 of 0
Page 3 of 0
Page 4 of 0
Any ideas? Thanks!
I found the solution.
http://jasperforge.org/tracker/index.php?func=detail&aid=2873&group_id=102&atid=612
But the book JasperReports for Java Developers (p 146) says that PAGE_COUNT is the total number of pages in the report. I guess the bug is in the book.
our reports look like :
1st part, interpreted during page generation, gives the # of the current page (evaluationTime="Now") 2nd part, interpreted at the end of the report , gives the total # of pages (evaluationTime="Report")
HTH