2002 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Kuo Lung Ching - ching_kuo load jasperdesign from xml and compile? 2003-01-28 19:56 Hi... I load jasperdesign from xml and compile. Why can't get .jasper file and export report to pdf and html ??? JasperDesign jdesign=JasperManager.loadXmlDesign("BasicReport.xml"); JasperReport jreport=JasperCompileManager.compileReport(jdesign); Map parameters=new HashMap(); parameters.put("ReportTitle", "Basic JasperReport"); parameters.put("MaxSalary", new Double(25000.00)); JasperPrint jprint=JasperFillManager.fillReport(jreport,parameters,new JREmptyDataSource()); JasperManager.printReportToPdfFile(jprint, "BasicReport.pdf"); JasperExportManager.exportReportToHtmlFile (jprint,"BasicReport.html"); 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