Skip to content

Instantly share code, notes, and snippets.

@edenir-anschau
Last active February 28, 2016 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edenir-anschau/2919bde65be8bded2ce7 to your computer and use it in GitHub Desktop.
Save edenir-anschau/2919bde65be8bded2ce7 to your computer and use it in GitHub Desktop.
Merge multiple jasper prints
List<JasperPrint> jasperPrints = loadReports();
ByteArrayOutputStream out = new ByteArrayOutputStream();
JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jasperPrints);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out);
exporter.exportReport();
//Source: http://stackoverflow.com/a/24117554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment