Don't show save dialog
Posted: Tue Sep 29, 2015 8:46 pm
Hello,
I have the designer embeded on a Desktop AIR application.
The user can costumize a report (from a MRT template) and then save to a database.
var report:StiReport = new StiReport();
report.load Report FromString(reportString);
report.design();
designer = report.designer as StiDesignerFx;
designer.addEventListener(StiDesignerEvent.SAVE_REPORT, onSave);
private function onSave(event:StiDesignerEvent):void
{
//my custom code to save the report definition to a database
}
However the application also saves the report on disk (with the original file name).
If I set report.reportFile = null; then I get a popup to choose where to save the file
Then I tryed this:
StiOptions.designer.appearance.show SaveFileDialog = false;
StiOptions.designer.dontAskSaveReport = true;
But the application continues to popup where to save the file.
My goal is to continue to capture the save event but ignore the Stimulsoft.Fx designer save method.
Thanks,
Hugo.
I have the designer embeded on a Desktop AIR application.
The user can costumize a report (from a MRT template) and then save to a database.
var report:StiReport = new StiReport();
report.load Report FromString(reportString);
report.design();
designer = report.designer as StiDesignerFx;
designer.addEventListener(StiDesignerEvent.SAVE_REPORT, onSave);
private function onSave(event:StiDesignerEvent):void
{
//my custom code to save the report definition to a database
}
However the application also saves the report on disk (with the original file name).
If I set report.reportFile = null; then I get a popup to choose where to save the file
Then I tryed this:
StiOptions.designer.appearance.show SaveFileDialog = false;
StiOptions.designer.dontAskSaveReport = true;
But the application continues to popup where to save the file.
My goal is to continue to capture the save event but ignore the Stimulsoft.Fx designer save method.
Thanks,
Hugo.