Page 1 of 1

Open Report Designer from Code.

Posted: Mon Oct 03, 2011 7:16 am
by KosmoKeLi
Hi!

I'm wondering if there's a way to save a report to a stream or in memory.

Right now I'm opening the designer through code with: StiReport.Design().

And I want the changes to be saved to the Report I'm designing without having to save it to a file and then reload it.

Is there a way to do this? Maybe using the StiDesignerControl or something?

Or is there a way to prevent the StiDesignerControl from asking to save changes upon closing?

Regards, Jerry

Open Report Designer from Code.

Posted: Mon Oct 03, 2011 8:11 am
by Alex K.
Hello,

You can describe to close designer event and make necessary saves in it:

Code: Select all

StiOptions.Engine.GlobalEvents.ClosedDesigner += new EventHandler(GlobalEvents_ClosedDesigner);
Thank you.