seboss Posted August 9, 2006 Share Posted August 9, 2006 Hello, I would like to know if it's possible to have, in one PDF file, several time the same report (for exemple a report concerning each person in a company). I didn't find anything in this way, what about ? Thanks Link to comment Share on other sites More sharing options...
lucianc Posted August 9, 2006 Share Posted August 9, 2006 You can pass a list of JasperPrint objects to the PDF exporter using the JRExporterParameter.JASPER_PRINT_LIST export parameter and the exporter will export all the reports into the same PDF file. HTH,Lucian Link to comment Share on other sites More sharing options...
seboss Posted August 9, 2006 Author Share Posted August 9, 2006 Yes, it seems to be exactly what I need !! If you have an exemple of use... I'll take it :) Thanks you very much for you quick answer ! Link to comment Share on other sites More sharing options...
lucianc Posted August 9, 2006 Share Posted August 9, 2006 If you download the JR distribution, you'll find a "batchexport" sample under demo/samples. Link to comment Share on other sites More sharing options...
seboss Posted August 10, 2006 Author Share Posted August 10, 2006 Ok, it's seems to work after little modifications but I've a new problem. (Thanks a lot) I'd like to make the same things but simply with a screen display, like JasperViewer.viewReport() method. I've been looking the class JRGraphics2DExport but I don't succeed to use it and there is no example about it. Can you give me informations about it please ? Thanks. Link to comment Share on other sites More sharing options...
lucianc Posted August 10, 2006 Share Posted August 10, 2006 JasperViewer and JRViewer can only handle a single report currently. You can post a feature request for report list support. JRGraphics2DExporter works on a page-by-page basis, it only exports one page of a report at a time. If you want to use it, you need to specify at least the following export parameters: JRExporterParameter.JASPER_PRINTJRExporterParameter.PAGE_INDEXJRGraphics2DExporterParameter.GRAPHICS_2D[/ul] If you need any more specific information, let me know. 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