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