CrystalReportViewer.ShowExportButton 属性

获取或设置 CrystalReportViewer 控件工具栏是否有用于导出的按钮。

命名空间 CrystalDecisions.Windows.Forms 程序集 CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)

语法

声明

Public Property ShowExportButton As Boolean
public bool ShowExportButton {get; set;}

示例

此示例将显示 CrystalReportViewer 工具栏中的所有可用按钮。

声明

    Private Sub SetShowButtons()
      CrystalReportViewer.ShowCloseButton = True
      CrystalReportViewer.ShowExportButton = True
      CrystalReportViewer.ShowGotoPageButton = True
      CrystalReportViewer.ShowGroupTreeButton = True
      CrystalReportViewer.ShowPageNavigateButtons = True
      CrystalReportViewer.ShowPrintButton = True
      CrystalReportViewer.ShowRefreshButton = True
      CrystalReportViewer.ShowTextSearchButton = True
      CrystalReportViewer.ShowZoomButton = True
    End Sub
    private void SetShowButtons()
    {
      crystalReportViewer.ShowCloseButton = true;
      crystalReportViewer.ShowExportButton = true;
      crystalReportViewer.ShowGotoPageButton = true;
      crystalReportViewer.ShowGroupTreeButton = true;
      crystalReportViewer.ShowPageNavigateButtons = true;
      crystalReportViewer.ShowPrintButton = true;
      crystalReportViewer.ShowRefreshButton = true;
      crystalReportViewer.ShowTextSearchButton = true;
      crystalReportViewer.ShowZoomButton = true;
    }

版本信息

Crystal Reports Basic for Visual Studio 2008

从此版本开始支持: Crystal Reports for Visual Studio .NET 2002

另请参见

引用

CrystalReportViewer 类
CrystalReportViewer 成员
CrystalDecisions.Windows.Forms 命名空间