Normally, when I render a report, I call Render() which renders asynchronously and provides a progress dialog with a cancel button. But when closing the designer, it freezes the gui while re rendering. I'm guessing it's calling Render(false)
Is there any way to force it to render asynchronously after closing the designer?
frozen gui problem
frozen gui problem
Please use following code:
Thank you.
Code: Select all
private void OnRendering(object sender, EventArgs e)
{
Application.DoEvents();
}
//If report require compilation
report.Compile();
report.CompiledReport.Rendering += new EventHandler(OnRendering);
report.Render(false);
//If not require
report.Rendering += new EventHandler(OnRendering);
report.Render(false);