Problems with Report Designer

Stimulsoft Reports.NET discussion
Post Reply
jorgeto
Posts: 42
Joined: Tue Aug 16, 2011 4:49 pm
Location: Lima

Problems with Report Designer

Post by jorgeto »

Hi, I'm developing a panel which simulates Save/SaveAs options of the report designer and I'm having two problems:

1.- When I make a postback (click MY save button or MY save as button) the report designer reloads and I lost all the changes I made. How I can keep any changes I made on the report designer after postback?

2.- How I can access to SaveReport method of the designer from another button (a button I made outside the designer)

I attached a capture.
Attachments
designer.jpg
designer.jpg (255.66 KiB) Viewed 1343 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problems with Report Designer

Post by Alex K. »

Hello,

You can describe on the following event:

Code: Select all

StiOptions.Engine.GlobalEvents.SavingReportInDesigner
Thank you.
jorgeto
Posts: 42
Joined: Tue Aug 16, 2011 4:49 pm
Location: Lima

Re: Problems with Report Designer

Post by jorgeto »

Hi,

Thanks for the quick reply. Can you give more details of how I can override this method? SavingReportInDesigner

I'm trying this:

Code: Select all

StiOptions.Engine.GlobalEvents.SavingReportInDesigner += new StiSavingObjectEventHandler(SavingReportInDesigner);

private void SavingReportInDesigner(Object sender, Stimulsoft.Report.Design.StiSavingObjectEventArgs  e) { 
Stimulsoft.Report.Design.StiDesignerControl designerControl = (Stimulsoft.Report.Design.StiDesignerControl)sender; 
}
How I can call my overrided SavingReportInDesigner method when I click my OWNsave button?
This is not working:

Code: Select all

<asp:Button ID="btnSave" runat="server" OnClick="SavingReportInDesigner"/>
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problems with Report Designer

Post by Alex K. »

Hello,

Please send us a sample project for analysis.

Thank you.
Post Reply