Category: | Bug report |
Priority: | Urgent |
Status: | Closed |
Project: | Severity: | Critical |
Resolution: | Unable to Reproduce |
|
Component: | Reproducibility: | Always |
Assigned to: |
I have been struggling with this issue for a long time and now I think that this is a bug with jasperReports.
While printing Page x of y on page footer, the x is evaluated at "now" level and y is evaluated at "Report" level and it works smooth. However in our report, we have list of clients to be printed, and each clinet may consume multiple pages, so we would like to print "Total Number of Pages" at client group level. e.g. if there are 3 clients and each client has multiple pages (say 3,5 & 10) then I would like to print Page in footer as follows:
Client-1:
1 of 3, 2 of 3, 3 of 3
Client-2:
1 of 5, 2 of 5, 3 of 5...and so on
Client-3:
1 of 10, 2 of 10, 3 of 10...and so on
I assumed that to do that the evaluationTime for y would be GROUP. but it does not work. it starts printing Page 1 of 1, Page 2 of 2 etc.
2 Comments:
I tested group evaluated $V{PAGE_NUMBER} and it worked fine. If it doesn't work properly for you, please attach a self contained (JRXML, data to run it, other resources) test case to reproduce the problem.
Also, judging from what you want to achieve, isResetPageNumber="true" set at group level should do the job. Did you try that?
Regards,
Lucian
Hi,
If you have further details about this, feel free to reopen.
Closing now.
Thanks,
Teodor