File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes JasperReports with multiple nested subreports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JasperReports with multiple nested subreports" Watch "JasperReports with multiple nested subreports" New topic

JasperReports with multiple nested subreports

Bharati Tm

Joined: Feb 10, 2012
Posts: 2
I have the Report Structure as follows:
--Main Report (populated from a Java bean object, contains list<Object1> to populate subreport1
------SubReport1 (Contains <List<Object11> and List<Object 12>, to be populated from Java bean object as well).
-----------subreport 12

I am using JRBeanCollectionDataSource to populate the reports. I am able to populate Main Report, Subreport1, but unable to populate subreport11 , subreport 12 and subreport111.

When I pass the parameter for subreport11 in Main Report, do I need to have datasource name same that is needed for subreport11? If so, how will I populate subreport 12?

I am using subreport 5.1.0.


I agree. Here's the link:
subject: JasperReports with multiple nested subreports
Similar Threads
Jasper reports - main header repeated inside subreport - how to avoid it ?
JasperReport sureport inside subreport
[RESOLVED] jasper & iReport multi-reports
How to pass Map parameter to a subreport from a main report -----JasperReports
Jasper reports - Group several subreports