This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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: 131
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.

I agree. Here's the link:
subject: JasperReport with 3-level Subreports
jQuery in Action, 3rd edition