pls. tell me how i can to access to Closed event Stimulsoft?
for more explanation:
i want to, my program(C#) do something when user closed the Report form.
Regards,
Access to Closed event
Access to Closed event
Hello,
You can use the following code:
Thank you.
You can use the following code:
Code: Select all
private void btnDesign_Click(object sender, EventArgs e)
{
StiReport report = new StiReport();
StiOptions.Engine.GlobalEvents.ClosingDesigner += new CancelEventHandler(GlobalEvents_ClosingDesigner);
report.Load();
report.Design();
}
void GlobalEvents_ClosingDesigner(object sender, CancelEventArgs e)
{
// your code
}
Thank you.
Access to Closed event
Very Thanks for your solution, but I need to Closed event of Report .
Access to Closed event
Hello,
Sorry, maybe we did not exactly understood your question. Could you explain your issue in more details.
Thank you.
Sorry, maybe we did not exactly understood your question. Could you explain your issue in more details.
Thank you.
Access to Closed event
of course;
i use from belwo code for show my report
and when user closed the Report then my program do something.
actually, i want one code like Aleksey's Code but with Closed Event for Report that displayed and not for report Designer.
i use from belwo code for show my report
Code: Select all
stiReportRA.Load("..\\..\\stiReportRA.mrt");
.
.
.
stiReportRA.Show();
actually, i want one code like Aleksey's Code but with Closed Event for Report that displayed and not for report Designer.
Access to Closed event
Hello,
In this case, you can use the StiViewerControl
Thank you.
In this case, you can use the StiViewerControl
Code: Select all
StiReport report = new StiReport();
report.Load();
...
stiViewerControl1.Report = report;
stiViewerControl1.Close += new EventHandler(stiViewerControl1_Close);
...
void stiViewerControl1_Close(object sender, EventArgs e)
{
\\ your code
}