Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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
)

Parameters

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 )
      {
         crystalReportViewer.CloseView(viewName);
      }
      

Crystal Reports Basic for Visual Studio 2008

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