Home » Topic » How to use multiple datasets for jasper report
How to use multiple datasets for jasper report
Thank you for downloading AIS 1.3 and trying out our Live application. Further I would like to welcome you to our strong users community which includes thousands of users just like yourself from more than 50 countries globally.
I have created several reports, all with a custom JRDataSource. All seems to be working fine in my Java application.
I use JasperFillManager.fillReport(fileName, params, dataSource) followed by JasperExportManager.exportReportToPdf(jasperPrint) and I am getting the PDF with all the data.
Now want to create more complicated reports that contain data from multiple Datasource. I cannot see how to add additional Datasource in Java to a report. I have read up about sub-datasets and subReports but cannot see how I can associate (in Java) different JRDataSources with different sub-datasets and/or subReports.