This documentation is archived and is not being maintained.

ReportViewer.Reset Method

Resets the control to its default values.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Public Sub Reset
Dim instance As ReportViewer

public void Reset ()
public function Reset ()

Calling the Reset method cancels any current rendering and resets the ReportViewer control to its default state. The existing LocalReport object is replaced with a new instance.


Because the LocalReport object is replaced with a new instance when Reset is called, any reference to the SubreportProcessing event handler is removed. You must reinstate the SubReportProcessing event handler after calling Reset to handle sub-report processing events.

Private Sub Button1_Click(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles Button1.Click
End Sub