Save a report

Stimulsoft Reports.Flex discussion
Locked
ksukat
Posts: 25
Joined: Mon Aug 13, 2012 7:05 pm

Save a report

Post 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.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Save a report

Post 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.
Locked