CrystalReportViewer Members

Provides properties, methods, and events that modify or retrieve information about how the CrystalReportViewer control appears and functions.

The following tables list the members exposed by the CrystalReportViewer type.

Public Properties

Property Description
Public property ActiveViewIndex  Gets or sets the index of the active view in the CrystalReportViewer control.
Public property BackColor  Overridden. Gets or sets the background color for the control.
Public property BackgroundImage  Overridden. Gets or sets the background image displayed in the control.
Public property BackgroundImageLayout  Overridden. Gets or sets the background image layout as defined in the System.Windows.Forms.ImageLayout enumeration.
Public property DisplayBackgroundEdge  Determines whether the report is offset from the edge of its view window.
Public property DisplayGroupTree  Gets or sets whether the tree view is visible or hidden.
Public property DisplayStatusBar  Gets or sets whether the status bar is visible or hidden.
Public property DisplayToolbar  Gets or sets whether the toolbar is visible or hidden.
Public property EnableDrillDown  Gets or sets whether the user can drill down into the report.
Public property EnableToolTips  Gets or Sets whether tool tips are displayed in the report viewer.
Public property EnterpriseLogon  Gets or sets the logon information for an enterprise report.
Public property LogOnInfo  Gets or sets the TableLogOnInfos collection.
Public property ParameterFieldInfo  Gets or sets the parameter fields collection.
Public property ReportSource  Sets the report to bind to the CrystalReportViewer control.
Public property ReportSourceClassFactoryName  Gets or sets the information needed to create an internal ReportSource object.
Public property RightToLeft  Overridden. Gets or sets whether the text appears from right to left, such as when using Hebrew or Arabic fonts.
Public property SelectionFormula  Gets or sets the record selection formula of the report.
Public property ShowCloseButton  Gets or sets whether the CrystalReportViewer control's toolbar has the button for closing a report page.
Public property ShowExportButton  Gets or sets whether the CrystalReportViewer control's toolbar has the button for exporting.
Public property ShowGotoPageButton  Gets or sets whether the CrystalReportViewer control's toolbar has the button for specifying a page number.
Public property ShowGroupTreeButton  Gets or sets whether the CrystalReportViewer control's toolbar has the button for showing or hiding the group tree.
Public property ShowPageNavigateButtons  Gets or sets whether the CrystalReportViewer control's toolbar has the buttons for page navigation.
Public property ShowPrintButton  Gets or sets whether the print button on the toolbar is visible or hidden.
Public property ShowRefreshButton  Gets or sets whether the refresh button on the toolbar is visible or hidden.
Public property ShowTextSearchButton  Gets or sets whether the search button on the toolbar is visible or hidden.
Public property ShowZoomButton  Gets or sets whether the zoom factor list on the toolbar is visible or hidden.
Public property ViewCount  Gets the number of views in the CrystalReportViewer control.
Public property ViewTimeSelectionFormula  Gets or sets the record selection formula to filter the data that are currently used in the report.

Top

Public Methods

Method Description
Public method CloseView  Closes a view tab in the CrystalReportViewer control.
Public method DrillDownOnGroup  Drills down on a group.
Public method ExportReport  Exports the report displayed in the CrystalReportViewer control.
Public method GetCurrentPageNumber  Gets the current page number of the report.
Public method PrintReport  Prints the report displayed in the CrystalReportViewer control.
Public method RefreshReport  Refreshes the report displayed in the CrystalReportViewer control.
Public method SearchForText  Searches the report for the given text.
Public method ShowFirstPage  Shows the first page of the report.
Public method ShowGroupTree  Shows the group tree in the CrystalReportViewer control.
Public method ShowLastPage  Shows the last page of the report.
Public method ShowNextPage  Shows the next page of the report.
Public method ShowNthPage  Shows the specified page of the report.
Public method ShowPreviousPage  Shows the previous page of the report.
Public method Zoom  Changes the magnification level of the CrystalReportViewer control.

Top

Public Events

Event Description
Public event Drill  Event fires when a report is drilled down on.
Public event DrillDownSubreport  Event fires when the user drills down on a subreport.
Public event Error  Event fires when an error occurs in the CrystalReportViewer control.
Public event HandleException  Event fires when an exception occurs in the CrystalReportViewer control.
Public event Navigate  Event fires when the user navigates through a report.
Public event ReportRefresh  Event fires when the data in the report is refreshed.
Public event Search  Event fires when text is searched for in the report.
Public event ViewZoom  Event fires when zoom level of the CrystalReportViewer control changes.

Top

See Also

Reference

CrystalDecisions.Windows.Forms Namespace