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 命名空间