ReportEngineOutput reportOutput = null;
JasperPrint jasperPrint = null;
if (report.isJasperReport())
{
JasperReportEngine jasperEngine = new JasperReportEngine(
dataSourceProvider, directoryProvider, propertiesProvider);
jasperPrint = jasperEngine.fillReport(reportInput);
log.debug("Report filled - " + report.getName() + " : size = "
+ jasperPrint.getPages().size());
log.debug("Exporting report: " + report.getName());
reportOutput = jasperEngine.exportReport(jasperPrint, exportType, report
.getReportExportOption(), imagesMap, false);
}
else
{
ReportEngine reportEngine = ReportEngineHelper.getReportEngine(report, dataSourceProvider, directoryProvider, propertiesProvider);