Crystal Reports XI Release 2  

ReportDocument.ExportToDisk Method

Exports a report to a file in the specified format.

[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
);

Parameters

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

Example

Tutorial

The following example exports a report to disk as an RTF document.

        
[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");
      

Requirements

Namespace   CrystalDecisions.CrystalReports.Engine

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

See Also

ReportDocument Class | ReportDocument Members | CrystalDecisions.CrystalReports.Engine Namespace