共用方式為


ReportDocument.ExportToDisk 方法

以指定的格式將報表匯出至檔案。

[Visual Basic]

Public Overrideable Sub ExportToDisk( _
   ByVal formatType As CrystalDecisions.Shared.ExportFormatType, _
   ByVal fileName As String _
)

[C#]

public virtual void ExportToDisk(
   CrystalDecisions.Shared.ExportFormatType formatType, 
   string fileName
);

參數

  • formatType
    要用來匯出報表的格式類型。
  • fileName
    要用來匯出報表的檔案名稱。

範例

教學課程

下列範例會將報表匯出至磁碟,成為 RTF 文件。

[VJ#]

      Report.ExportToDisk(ExportFormatType.RichText, "report.rtf");
      
[Visual Basic]

      Report.ExportToDisk(ExportFormatType.RichText, "report.rtf")
      
[C++]

      Report->ExportToDisk(ExportFormatType::RichText, "report.rtf");
      
[C#]

      Report.ExportToDisk(ExportFormatType.RichText, "report.rtf");
      

需求

命名空間 CrystalDecisions.CrystalReports.Engine

組件 CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)

請參閱

ReportDocument 類別 | ReportDocument 成員 | CrystalDecisions.CrystalReports.Engine 命名空間

**

©2005 Business Objects SA All rights reserved

Business Objects SA
http://www.china.businessobjects.com/
支援的服務
http://www.china.businessobjects.com/BOindex/support/