2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: raf78 - raffeo number of copies 2005-12-06 06:20 Hi! Sorry for my English! I'm new to jasper report. I create a report with Ireport and now i'd like print 4 copies of this report. Is possible? My code is String xmlFileName = "c:\programmi\webas\punto_cassa\print\newetichetta.jrxml"; String jasperFileName = "c:\programmi\webas\punto_cassa\print\newetichetta.jasper"; try { JasperCompileManager.compileReport(xmlFileName); JasperCompileManager.compileReportToFile(xmlFileName, jasperFileName); java.util.HashMap map = new java.util.HashMap(); map.put("MyParam", new Integer(100)); JasperReport report = JasperManager.loadReport(jasperFileName); JasperPrint print = JasperFillManager.fillReport(report, map,new JREmptyDataSource()); new JasperPrintManager().printReport(print, false); Can you help me? Thanks Raf By: C-Box - c-box RE: number of copies 2005-12-06 08:41 Why not the easiest way with a forToDo loop around the printCommand!?!?! :-) hth C-Box 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