Page 1 of 1

frozen gui problem

Posted: Fri Sep 15, 2006 12:18 pm
by sprucely
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

Posted: Fri Sep 15, 2006 3:35 pm
by Vital
Please use following code:

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);
Thank you.