I found the way. Here it is how to export a report in XHTML format java jasperPrint = JasperFillManager.fillReport("PublicitiesStatistics.jasper", jasperParameter, connection); JRXhtmlExporter xhtmlExporter = new JRXhtmlExporter(); xhtmlExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); xhtmlExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,"C://sample_report2.html " ); xhtmlExporter.exportReport(); Hope it helps somebody, Nanchu