dpa Posted March 7, 2007 Share Posted March 7, 2007 Hello, I use JasperReports 0.53 and I can't upgrade to a newer version. Someone knows how to generate one pdf file with multiple reports by using v0.53? Thank you.Post edited by: dpa, at: 2007/03/06 22:41 Link to comment Share on other sites More sharing options...
filosganga Posted March 7, 2007 Share Posted March 7, 2007 ok. i think: Code:JasperReport report = ... // your report or reports ?JasperPrint print = null;for(data : datas){ JasperPrint tmp = JRFillManager.fill(report,parameters); if(print==null){ print = tmp; }else{ List<JRPrintPage> pages = (List<JRPrintPage>«»)tmp.getPages(); for (JRPrintPage page : pages) { print.addPage(page); } }} i use this code but i think maybe someone uses another best code. Link to comment Share on other sites More sharing options...
filosganga Posted March 7, 2007 Share Posted March 7, 2007 ok. i think: Code:JasperReport report = ... // your report or reports ?JasperPrint print = null;for(data : datas){ JasperPrint tmp = JRFillManager.fill(report,parameters); if(print==null){ print = tmp; }else{ List<JRPrintPage> pages = (List<JRPrintPage>«»)tmp.getPages(); for (JRPrintPage page : pages) { print.addPage(page); } }} i use this code but i think maybe someone uses another best code. 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