Page 1 of 1

Save a report

Posted: Wed Aug 15, 2012 7:27 pm
by ksukat
Greetings,
I have created an event handler for the saveReport event of the StiDesignerFx component.
I am wanting to open an existing report, edit it and save it. Must be the same file name.

So far, no luck.

protected function stidesignerfx1_saveReportHandler(event:StiDesignerEvent):void
{
report.saveReportToString();
}

I am sure I have missed something basic. would appreciate any help/guidance. The developers FAQ
is a little thin in places.

Re: Save a report

Posted: Thu Aug 16, 2012 6:46 am
by Vladimir
Hello,

This method returns the saved report as a string. Next, you need to save the resulting report to some location (as a file, into a database, etc.):

Code: Select all

protected function stidesignerfx1_saveReportHandler(event:StiDesignerEvent):void
{
    var str: String = report.saveReportToString();
    // save 'str' to some location
}
Thank you.