How To Identify End of Rendering???

Stimulsoft Reports.NET discussion
Post Reply
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How To Identify End of Rendering???

Post by jayakumargr »

Hi,
For Rendering I use,
report.Render(true);
user statement-1(other code);
.
.
.
user statement-n;

After rendering only the user statement-1 should execute. how to identify end of Rendering ?

And also i want that progress window(render) in the form of Modal Dialog.How i Do that? (stireport 2007.1)

Please Provide the Solution....

Thanks in Advance,
Jayakumar


Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

How To Identify End of Rendering???

Post by Vital »

For Rendering I use,
report.Render(true);
user statement-1(other code);
.
.
.
user statement-n;

After rendering only the user statement-1 should execute. how to identify end of Rendering ?
You can use EndRender event of report.
And also i want that progress window(render) in the form of Modal Dialog.How i Do that? (stireport 2007.1)

Please Provide the Solution....

You need create own dialog form. For rendering report you need call this form and call report rendering internally in this form. To hide standard progress form you need use following code:

Code: Select all

report.Render(false);
You need add own progress information too. For example:

Code: Select all

report.Rendering += new EventHandler(OnRendering);

private void OnRendering(object sender, EventArgs e)
{			
	lbStatus.Text = ((StiReport)sender).StatusString;
	Application.DoEvents();
}
Thank you.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How To Identify End of Rendering???

Post by jayakumargr »

Hi,
I use EndRender event handler.but it doesn't work.
i wrote
report.EndRender += new EventHandler(onEndRender);

Private void onEndRender(object sender, EventArgs e)
{
statement-1;
.
.
statement-n;
}

How to use EndRender ???

Thanks in Advance,
Jayakumar
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

How To Identify End of Rendering???

Post by Vital »

Try following:

Code: Select all

report.CompiledReport.EndRender += new EventHandler(onEndRender);
Post Reply