Page 1 of 1

Problems with Report Designer

Posted: Mon Feb 18, 2013 11:34 pm
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.

Re: Problems with Report Designer

Posted: Tue Feb 19, 2013 7:22 am
by Alex K.
Hello,

You can describe on the following event:

Code: Select all

StiOptions.Engine.GlobalEvents.SavingReportInDesigner
Thank you.

Re: Problems with Report Designer

Posted: Tue Feb 19, 2013 3:06 pm
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"/>

Re: Problems with Report Designer

Posted: Wed Feb 20, 2013 7:03 am
by Alex K.
Hello,

Please send us a sample project for analysis.

Thank you.