MSDN Library

CrystalReportViewer.CloseView Method

Closes a view tab in the CrystalReportViewer control.

Namespace   CrystalDecisions.Windows.Forms
Assembly  CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)

public virtual void CloseView (
	object viewURI



Indicates a string value that contains the name of the view tab.

This method can either take the name of a view tab or a null value. A null value closes the current view. The main view cannot be closed.

The following example closes a view tab. View tabs are located in the CrystalReportViewer control.

      private void CloseViewTab( string viewName )

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002
© 2016 Microsoft