tags:

views:

201

answers:

1

Hi Friends, I am new to jasper report.I can able to create Simple PDF document with Javabean datasource.In my project i have created two separete pdf document with separate javabeandatasource , Now i want to merge that both document into single document.Can anyone tell me how to merge both document into single document using jasper.

A: 

Hello, You can use subreports for this. You dont have to recreate your current reports. Create a master report, with 0 marhins. Add all your reports to this as subreport and put condition that if datasource is available for this, only then print this report. Now put all your individual datasources into one map data source and pass this datasource to master report. Configute all subreports to the key in the map.

Milind