Last active
February 28, 2016 12:59
-
-
Save edenir-anschau/2919bde65be8bded2ce7 to your computer and use it in GitHub Desktop.
Merge multiple jasper prints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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