}
out = new BufferedOutputStream(new FileOutputStream(file));
final FlowExcelOutputProcessor target =
new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
target.setUseXlsxFormat(false);
final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
if (progressDialog != null)
{
progressDialog.setModal(false);
progressDialog.setVisible(true);
reportProcessor.addReportProgressListener(progressDialog);
}
reportProcessor.processReport();
out.close();
out = null;
if (progressDialog != null)
{
reportProcessor.removeReportProgressListener(progressDialog);
}
if (statusListener != null)
{
statusListener.setStatus