This is a migrated thread and some comments may be shown as answers.

Report Rendering Complete Event

1 Answer 373 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 20 May 2009, 02:00 PM
I am currently running a report that takes several minutes to complete.  We have a blind user working with this application and I need to notify him when the report rendering has completed.  There is a RenderingBegin event, but is there any kind of RenderingComplete event or equivalent?  I plan to use this event to trigger a message box to notify the user when the report rendering has completed.

Thank you

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 May 2009, 03:43 PM
Hi Jason,

The RenderingBegin event has been exposed in case someone might want to cancel the report rendering. We have not thought of well argumented reason for the existence of RenderingEnd/Complete event and we have not introduced such.
Anyway for your scenario you can use the UpdateUI event of the viewer. Although it is not designed for this purpose it could also help you in this situation. Here is an example:

public Form1()  
{  
  InitializeComponent();  
  this.reportViewer1.UpdateUI += new EventHandler(reportViewer1_UpdateUI);  
}  
  
void reportViewer1_UpdateUI(object sender, EventArgs e)  
{  
  ReportViewer viewer = (ReportViewer)sender;  
  if (viewer.ProcessingState == ProcessingState.Success)  
  {  
    //notify user 
  }  
}  
 

Hope this helps.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Jason
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or