共用方式為


CrystalReportViewer 成員

提供屬性、方法及事件,用來修改或擷取有關 CrystalReportViewer 控制項出現及作用方式的資訊。

下表列出 CrystalReportViewer 類型公開的成員清單。

公用 內容

屬性 說明
Public property ActiveViewIndex  取得或設定 CrystalReportViewer 控制項使用中的檢視之索引。
Public property BackColor  已覆寫。 取得或設定控制項的背景色彩。
Public property BackgroundImage  已覆寫。 取得或設定控制項中顯示的背景影像。
Public property BackgroundImageLayout  已覆寫。 取得或設定 System.Windows.Forms.ImageLayout 列舉中定義的背景影像配置。
Public property DisplayBackgroundEdge  決定報表是否從它的檢視視窗邊緣位移。
Public property DisplayGroupTree  取得或設定樹狀結構檢視是可見的還是隱藏的。
Public property DisplayStatusBar  取得或設定狀態列是可見的還是隱藏的。
Public property DisplayToolbar  取得或設定工具列是可見的還是隱藏的。
Public property EnableDrillDown  取得或設定使用者是否可以擷取報表的細目。
Public property EnableToolTips  取得或設定是否要在報表檢視器中顯示工具提示。
Public property EnterpriseLogon  取得或設定企業報表的登入資訊。
Public property LogOnInfo  取得或設定 TableLogOnInfos 集合。
Public property ParameterFieldInfo  取得或設定參數欄位集合。
Public property ReportSource  將報表設定為繫結到 CrystalReportViewer 控制項。
Public property ReportSourceClassFactoryName  取得或設定建立內部 ReportSource 物件需要的資訊。
Public property RightToLeft  已覆寫。 取得或設定文字顯示方向是否從右到左,例如使用希伯來文或阿拉伯文字體時。
Public property SelectionFormula  取得或設定報表的資料錄選擇公式。
Public property ShowCloseButton  取得或設定 CrystalReportViewer 控制項工具列是否有可關閉報表頁面的按鈕。
Public property ShowExportButton  取得或設定 CrystalReportViewer 控制項工具列是否有匯出的按鈕。
Public property ShowGotoPageButton  取得或設定 CrystalReportViewer 控制項工具列是否有可指定頁碼的按鈕。
Public property ShowGroupTreeButton  取得或設定 CrystalReportViewer 控制項工具列是否有可顯示或隱藏群組樹狀結構的按鈕。
Public property ShowPageNavigateButtons  取得或設定 CrystalReportViewer 控制項工具列是否有留覽頁面的按鈕。
Public property ShowPrintButton  取得或設定工具列上的列印按鈕是可見的還是隱藏的。
Public property ShowRefreshButton  取得或設定工具列上的重新整理按鈕是可見的還是隱藏的。
Public property ShowTextSearchButton  取得或設定工具列上的搜尋按鈕是可見的還是隱藏的。
Public property ShowZoomButton  取得或設定工具列上的縮放係數清單是可見的還是隱藏的。
Public property ViewCount  取得 CrystalReportViewer 控制項的檢視數目。
Public property ViewTimeSelectionFormula  取得或設定資料錄選擇公式,以篩選報表中目前所使用的資料。

Top

公用 方法

方法 說明
Public method CloseView  關閉 CrystalReportViewer 控制項的檢視索引標籤。
Public method DrillDownOnGroup  擷取群組的細目。
Public method ExportReport  匯出 CrystalReportViewer 控制項中顯示的報表。
Public method GetCurrentPageNumber  取得報表的目前頁碼。
Public method PrintReport  列印 CrystalReportViewer 控制項中顯示的報表。
Public method RefreshReport  重新整理 CrystalReportViewer 控制項中顯示的報表。
Public method SearchForText  搜尋指定文字的報表。
Public method ShowFirstPage  顯示報表的第一頁。
Public method ShowGroupTree  顯示 CrystalReportViewer 控制項中的群組樹狀結構。
Public method ShowLastPage  顯示報表的最後一頁。
Public method ShowNextPage  顯示報表的下一頁。
Public method ShowNthPage  顯示報表的指定頁。
Public method ShowPreviousPage  顯示報表的前一頁。
Public method Zoom  變更 CrystalReportViewer 控制項的放大等級。

Top

公用 事件

事件 說明
Public event Drill  在報表上擷取細目時引發的事件。
Public event DrillDownSubreport  當使用者在子報表上擷取細目時引發的事件。
Public event Error  當 CrystalReportViewer 控制項中發生錯誤時引發的事件。
Public event HandleException  當 CrystalReportViewer 控制項中發生例外狀況時引發的事件。
Public event Navigate  當使用者瀏覽報表時引發的事件。
Public event ReportRefresh  重新整理報表中的資料時引發的事件。
Public event Search  在報表中搜尋文字時引發的事件。
Public event ViewZoom  當 CrystalReportViewer 控制項的縮放等級變更時引發的事件。

Top

請參閱

參考

CrystalDecisions.Windows.Forms 命名空間