ReportAction action = globalContext.getActionFactory().newReportAction();
action.setReportSpec(reportDialog.getSelectedReportSpec());
action.setProfileIds(reportDialog.getSelectedProfileIds());
// action.setTargetFile(reportDialog.getTarget());
ReportProgressDialog reportProgressDialog = new ReportProgressDialog(this, action);
ReportViewFrame reportViewDialog = new ReportViewFrame(this);
//FIXME: the report transformer is defined as a singleton bean in the export report
// action configured through spring. Here we are instantiating a new specific
// transformer - there was a bug in that this one did not have the droid config
// object configured. For the time being, just set up this transformer correctly.
ReportTransformerImpl transformer = new ReportTransformerImpl();
transformer.setConfig(globalContext.getGlobalConfig());
reportViewDialog.setReportTransformer(transformer);
action.setProgressDialog(reportProgressDialog);
action.setViewDialog(reportViewDialog);
action.execute();