ReportDocument.ExportToDisk Method

Exports a report to a file in the specified format.

Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)


Public Overrideable Sub ExportToDisk ( _
    ByVal formatType As CrystalDecisions.Shared.ExportFormatType, _ 
    ByVal fileName As String _  
public virtual void ExportToDisk (
    CrystalDecisions.Shared.ExportFormatType formatType,
    string fileName


  • formatType
    The format type to export the report.
  • fileName
    The file name to export the report.


This example exports a report to disk as an RTF document with a specified filename.


      myReportDocument.ExportToDisk(ExportFormatType.RichText, "report.rtf")
      reportDocument->ExportToDisk(ExportFormatType::RichText, "report.rtf");
      reportDocument.ExportToDisk(ExportFormatType.RichText, "report.rtf");

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 9

See Also


ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace