Jump to content
Changes to the Jaspersoft community edition download ×

Can't export report


Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...