This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes JasperReport with 3-level Subreports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JasperReport with 3-level Subreports" Watch "JasperReport with 3-level Subreports" New topic

JasperReport with 3-level Subreports

Carlos Conti
Ranch Hand

Joined: Apr 21, 2010
Posts: 113
Hi there,

I need to produce a report inside another which at the time is inside another one. I must do this since I want to nest aggregate tabular data, which goes down three levels. What I have done for another two level report I had to produce, is to pass structures in Java as parameters in the form of array lists and then pass to the inner report an appropiate instance for parameters and the datasource, and point with the variable REPORT_COUNT to the correspondent instance inside a container collection. But if I want to approach a 3-level nesting report with this strategy it gets really cumbersome and very confusing to produce the data structure to populate the report.

Does anyone know an easier strategy to attain it? I have heard it is doable to produce a report and "print it" in a printable jasperreport object, for then to be merged to other instances and build an aggregated document. Could any one point to any valid strategy?

Hope the explanation was clear. Many thanks in advance for your attention.

Don't get me started about those stupid light bulbs.
subject: JasperReport with 3-level Subreports