Jump to content
We've recently updated our Privacy Statement, available here ×

Multiple Reports generating one PDF


nestorjb

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

hi,

 

Jasper provide this functionnality .

You have to create a list of JasperPrint object :

Code:

List jasperPrintList = null;
JasperPrint jasperPrint = JasperFillManager.fillReport(inputStream, jrParameters, jrDataSource);
jasperPrintList.add(jasperPrint);

and to export, just set an exporter parameter like this :

Code:
[code] // Generate the global report.
final JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jasperPrintList);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
exporter.setParameter(JRPdfExporterParameter.IS_CREATING_BATCH_MODE_BOOKMARKS, Boolean.TRUE);
exporter.exportReport();
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...