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)
Syntax
'Declaration
Public Overrideable Sub ExportToDisk ( _
ByVal formatType As CrystalDecisions.Shared.ExportFormatType, _
ByVal fileName As String _
)
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
This example exports a report to disk as an RTF document with a specified filename.
'Declaration
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
Reference
ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace