I'm evaluating JasperReport and iReport, a requirement is the possibility to produce a multiple page report in which every page contains a different report.
Example:
Page 1 contains an actual invoice for a customer
Page 2 contains the invoices list for the customer
Page 3 contains a graph of amount of invoices by year
Page 4 contains only fixed text (say operator instructions ...)
Is it possible to create such a unique report instead of creating four standalone report and then merge the pdfs.
Thank a lot.
Francesco
Yes you can by creating a dataSource and Parameters map for each sub report in your main report,
Data source contains the list that will be displayed as a table in the report
Parameters map contains keys and values of textfields in the report
The good news is that you can include all parameters of all your pages in each Parameters map then in report processing each page will extract its parameters and forgets others :)
Example :
Now we create each sub report and append it to the main report :
I tried something diffrent.
I used Ireport 4.1.3 and if you right click on detail1 section you can add another detail section.
Add a beak page and it's done.
Hope it helps :) Regards
Yes, it is possible. You can create the whole report as a composition of four separate subreports. This will enable their reusability and separation of concerns.
Yes, you can even include reports that has no relation to the customer "if that makes sense".
Also, to make things even more entertaining, after completing this report, you can put it in another parent report, then you will get the same report for multiple customers.