Hi I have used the below method to export PDF report from a java program. it takes about 5 mins to return a 25 page report. iReports returns the results in like 15 to 20 Sec on the same machine the time in SOP before and after returned 5 min in JasperFillManager.fillReport Any idea why there is ssuch a huge differenece between iReport Exproting and Exproting from a java program ? public byte[] runReportForPDF(String passedFilePath, String reportName, String reportXpath, HashMap parameters,BufferedInputStream buff) throws JRException { JRXmlDataSource xmlDataSource = null; JasperPrint jprint = null; JasperReport jasperReport = null; InputStream inputStream = null; try{ System.out.println("Printing All METHOD_PARAMETER_VALUE PDF "+passedFilePath+" /"+reportName+" /"+reportXpath+" /"+parameters); xmlDataSource = getXMLDataSource(buff,reportXpath); passedFilePath = passedFilePath.concat(reportName); System.out.println(passedFilePath); inputStream = JRLoader.getLocationInputStream(passedFilePath); jasperReport = (JasperReport) JRLoader.loadObject(inputStream); System.out.println("Time Before Filling the PDF reprot "+ Calendar.getInstance().getTime()); jprint = JasperFillManager.fillReport(jasperReport,parameters, xmlDataSource); System.out.println("Time After Filling the PDF reprot "+ Calendar.getInstance().getTime()); /* * Closing all the connections/variables used*/ if (inputStream != null){ inputStream.close(); inputStream = null; } }catch(Exception e){ e.getLocalizedMessage(); e.printStackTrace(); } return ((byte[])JasperExportManager.exportReportToPdf(jprint)); } Post Edited by vsmadhu at 06/09/2010 17:50