ChartReportEngine chartReportEngine = new ChartReportEngine(
dataSourceProvider, directoryProvider, propertiesProvider);
ReportEngineInput input = new ReportEngineInput(report, reportParameters);
ChartEngineOutput chartOutput = (ChartEngineOutput) chartReportEngine
.generateReport(input);
chartValues = chartOutput.getChartValues();
if (chartValues.length == 0)
{
addActionError(getText(LocalStrings.ERROR_REPORT_EMPTY));
}
imageMap = ImageMapUtilities.getImageMap("chart", chartOutput.getChartRenderingInfo());
HashMap<String,byte[]> imagesMap = new HashMap<String,byte[]>();
imagesMap.put("ChartImage", chartOutput.getContent());
session.put(ORStatics.IMAGES_MAP, imagesMap);
reportLog.setEndTime(new Date());
reportLog.setStatus(ReportLog.STATUS_SUCCESS);