CrystalReportViewer.CloseView Method
Closes a view tab in the CrystalReportViewer control.
Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
Syntax
'Declaration
Public Overrideable Sub CloseView ( _
ByVal viewURI As Object _
)
public virtual void CloseView (
object viewURI
)
Parameters
- viewURI
Indicates a string value that contains the name of the view tab.
Remarks
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.
Example
The following example closes a view tab. View tabs are located in the CrystalReportViewer control.
'Declaration
Private Sub CloseViewTab(ByVal viewName As String)
CrystalReportViewer.CloseView(viewName)
End Sub
private void CloseViewTab( string viewName )
{
crystalReportViewer.CloseView(viewName);
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Windows.Forms Namespace