Open Report Designer from Code.

Stimulsoft Reports.NET discussion
Post Reply
KosmoKeLi
Posts: 1
Joined: Mon Oct 03, 2011 7:14 am
Location: Sweden

Open Report Designer from Code.

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Open Report Designer from Code.

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