Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jasper report in jruby
- JasperReport jasperReport;
- JasperPrint jasperPrint;
- HashMap jasperParameter = new HashMap();
- jasperReport = JasperCompileManager.compileReport("C://report2.jrxml");
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- Connection conn = null;conn = DriverManager.getConnection("jdbc:mysql://localhost/productexample_development","root","");
- jasperPrint = JasperFillManager.fillReport(jasperReport,jasperParameter, conn);
- JasperExportManager.exportReportToPdfFile(jasperPrint, "C://sample_report.pdf");
- JasperExportManager.exportReportToHtmlFile(jasperPrint, "C://sample_report.HTML");
Add Comment
Please, Sign In to add comment