outStream.write(b);
JRExporter csvExporter = new JRCsvExporter();
csvExporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
csvExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputByteArray);
csvExporter.setParameter(JRExporterParameter.CHARACTER_ENCODING, "UTF-8");
csvExporter.exportReport();
outStream.write(outputByteArray.toByteArray());
} else
if (outputFormat.compareToIgnoreCase("XLS") == 0)
{
returnResult = tempFolder + "readonly.xls";