nestorjb Posted March 3, 2007 Share Posted March 3, 2007 Hi Is there a way wth Jasper Reports to dinamically select multiple reports to run and generate only one PDF? Regards, Néstor Boscán Link to comment Share on other sites More sharing options...
tarelr Posted March 5, 2007 Share Posted March 5, 2007 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 More sharing options...
JayLink Posted March 19, 2008 Share Posted March 19, 2008 I know this is an old discussion, but: Let's say the first part is a normal report, and the second part is a static .PDF (in my case, an order form). Is it possible to create one combined .PDF in this manner? Link to comment Share on other sites More sharing options...
lucianc Posted March 19, 2008 Share Posted March 19, 2008 JayLink wrote:Let's say the first part is a normal report, and the second part is a static .PDF (in my case, an order form).Is it possible to create one combined .PDF in this manner? JasperReports does not support that. However, you should be able to do it by directly using the iText library. Check the iText documentation for details. Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now