public static void createHTMLReport( InputStream reportFile, GridReportVO gridReportVO, String path, String fileName) throws JRException, IOException { gridReportVO.setPagination(false); JasperPrint jasperPrint = createJasperPrint(reportFile, gridReportVO); JRHtmlExporter exporter = new JRHtmlExporter(); Map<JRExporterParameter, Object> p = new HashMap<JRExporterParameter, Object>(); p.put(JRHtmlExporterParameter.JASPER_PRINT, jasperPrint); p.put(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE); p.put(JRHtmlExporterParameter.OUTPUT_FILE_NAME, path + "/" + fileName); exporter.setParameters(p); exporter.exportReport(); }