CrystalReportViewer.ExportReport Method
Exports the report displayed in the CrystalReportViewer control.
Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
Syntax
'Declaration
Public Overrideable Sub ExportReport ()
public virtual void ExportReport ()
Remarks
This method displays the Crystal Reports export report dialog that allows users to choose the export format and the file name. The destination for the export can only be to a disk file. If advanced exporting is needed, it is recommended to export through the report engine.
Example
The following example exports the report to a disk file.
'Declaration
Private Sub ExportReport()
CrystalReportViewer.ExportReport()
End Sub
private void ExportReport()
{
crystalReportViewer.ExportReport();
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports for Visual Studio .NET 2002
See Also
Reference
CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Windows.Forms Namespace