次の方法で共有


ReportViewer.Reset メソッド

Resets the control to its default values.

名前空間: Microsoft.Reporting.WinForms
アセンブリ: Microsoft.ReportViewer.WinForms (microsoft.reportviewer.winforms.dll 内)

構文

'宣言
'使用

解説

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 void button1_Click(object sender, EventArgs e)
{
   reportViewer.Reset();
}
Private Sub Button1_Click(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles Button1.Click
   ReportViewer1.Reset()
End Sub

参照

リファレンス

ReportViewer クラス
ReportViewer メンバ
Microsoft.Reporting.WinForms 名前空間