Progress® Telerik® Reporting R2 2018

ReportViewerCancelRendering Method (Int32)

Note: This API is now obsolete.

Stops background processing of the report.

Namespace:  Telerik.ReportViewer.Wpf
Assembly:  Telerik.ReportViewer.Wpf (in Telerik.ReportViewer.Wpf.dll) Version: 12.1.18.718 (12.1.18.718)

Syntax

[ObsoleteAttribute("CancelRendering(int timeout) method is now obsolete. Please use the Telerik.ReportViewer.Wpf.ReportViewer.CancelRendering() method instead.")]
public bool CancelRendering(
	int timeout
)

Parameters

timeout
Type: SystemInt32
The number of milliseconds to wait for the background rendering to terminate. A value of -1 waits forever. A value of 0 returns immediately without waiting for the rendering to terminate.

Return Value

Type: Boolean
A Boolean value. A value of true is returned if the background rendering has terminated. A value of false is returned if background rendering has not terminated after the amount of time specified in the millisecondsTimeout parameter has elapsed, or if the millisecondsTimeout parameter was set to 0.

Examples

// Stop rendering the report. 
private void CancelRendering(object sender, System.EventArgs e)
{
    this.reportViewer1.CancelRendering();
}

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy