Don't show save dialog

Stimulsoft Reports.Flex discussion
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

OK, thank you very much.

Have a nice weekend.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Don't show save dialog

Post by Andrew »

You too, Hugo!
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

Hi Andrew,

I tested the event.cancel = true;
Indeed event.cancel = true avoids saving the file to disk (so I can deal with this my self to save only on database) however with event.cancel = true, now is not possible to exit the designer.
How to workaround this ?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Don't show save dialog

Post by Vladimir »

Hello Hugo,

We have carefully reviewed the code and the chain of events of the report designer - our solution was wrong. You cannot cancel the save event, because it depends on other actions.
We made the changes and added a new option:

Code: Select all

StiOptions.designer.saveReportToDisk = false;
The save and exit in the AIR designer works correctly.
The update will be available in the next build.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

Hello Vladimir,

OK, I will use the new solution.
For when you predict the next release?

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Don't show save dialog

Post by HighAley »

Hello.

Our next release is planned on December.
The prerelease builds are published each Friday.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

Hello,

I meant prerelease.
OK it's around the corner (3 days) the next build.

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Don't show save dialog

Post by HighAley »

Hello.

Yes, our next prerelease build will be available on Friday.
Let us know if you need additional help.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

Hello,

I tested the StiOptions.designer.saveReportToDisk = false; but unfortunately does not work. It always try to save to disk.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Don't show save dialog

Post by Vladimir »

Hello Hugo,

We checked the option on Stimulsoft Reports.Flex 2015.2.3 build, option works correctly - 'Save' does not save the file to disk. Only 'Save As'.
Please send us a test project, perhaps we have not considered something.

Thank you.
Locked