kum_rahul Posted April 4, 2007 Share Posted April 4, 2007 Is it possible to export jasperreport to the second page of pdf or second sheet of excel and the first page of pdf as well as first sheet of excel should contain some large text information. Link to comment Share on other sites More sharing options...
hem Posted April 4, 2007 Share Posted April 4, 2007 Yes, First you create the pdf containing the text-information.Then add the jasper pdf to the first pdf page.for information how to combine pdf's try google. greetings, HeM Link to comment Share on other sites More sharing options...
kum_rahul Posted April 5, 2007 Author Share Posted April 5, 2007 You have to create a list of JasperPrint object : List jasperPrintList = null;JasperPrint jasperPrint = JasperFillManager.fillReport(inputStream, jrParameters, jrDataSource);jasperPrintList.add(jasperPrint); and to export, just set an exporter parameter like this : // 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...
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