File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Passing dataSource to subreport in ireport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Passing dataSource to subreport in ireport" Watch "Passing dataSource to subreport in ireport" New topic
Author

Passing dataSource to subreport in ireport

Roopali Gaikwad
Greenhorn

Joined: Mar 05, 2009
Posts: 4
Hi,
I m using ireport for geneating my report which is having a subreport inside main report.
I m passing dataSource of type "JRBeanArrayDataSource" to main report and now i wanted to pass same datasource to subreport.
The way i tried to pass to subreport is

JRBeanArrayDataSource dataSource;
dataSource = new JRBeanArrayDataSource(mainreportData);
map.put("reportRows", dataSource);

and "reportRows" passed as parameter to subreport. But it didn't wrked.

Can anybody suggest how i can do this?

Thanks in advance.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Passing dataSource to subreport in ireport
 
Similar Threads
JasperReport sureport inside subreport
Subreport in Ireports with different datasource
[RESOLVED] jasper & iReport multi-reports
How to use JRBeanArrayDataSource for subreports in jasper
pdf files is created in jboss bin folder.