2002 JI Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: Jeppy Suparto - manukarunta Can't export report 2003-08-21 22:07 Hi, I'm using Jasper Reports 0.5.0 and The XML report design was successfully compiled, but when I try to exportReport the exporter through JSP, my browser stop responding(hang), Can anyone know why and how to fix It ? Thanks My JSP code: <% File reportFile = new File(application.getRealPath("/reports/Buku.jasper")); JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath()); Map parameters = new HashMap(); parameters.put("ReportTitle", "Daftar Nama-nama"); parameters.put("BaseDir", reportFile.getParentFile()); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new DbBean().conConnect() ); JRExporter exporter = new JRHtmlExporter(); Map imagesMap = new HashMap(); session.setAttribute("IMAGES_MAP", imagesMap); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out); exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, imagesMap); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image.jsp?image="); exporter.exportReport(); %> 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