PAGE_COUNT not rendered correctly in JasperReports...?

jasper-reports

Solution

Well, don't know elder versions but in JasperReports 4.5.1; you can define two text fields both includes `$V{PAGE_NUMBER}` variables. The one which has `EvaluationTime: now` shows current page number; the other one with `EvaluationTime: report` shows the number of total pages. A simple trick but works :)

Problem

I have added the footer Page x of y to my report, but the PAGE_COUNT doesn't seem to work. Maybe the problem occurs 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?

Original source

Related problems