I did a report with iReport, when I test it inside of iReport works, but when I do the preview in the program but it takes a lot of minutes to do it.
this is the code:
plz help me!!
String reportSource = "./report/test3.jrxml";
HashMap params = new HashMap();
JRDesignQuery queryReport = new JRDesignQuery();
JasperDesign diReport= JRXmlLoader.load(reportSource);
JasperReport jasperReport = JasperCompileManager.compileReport(diReport);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, DB.getConnection());
JasperViewer ReporttoPreview = new JasperViewer(jasperPrint,false);
Maybe you need more ram memory
How many do you have? 512 ?
What about your jasper report version?
What do you have?
Jasper Report quite slow
Even i am experiencing the same problem. i got 512 MB RAM still it takes more than 20 secs for the report to load.
Please help out.