Share via


ReportDocument.SaveAs Method (String)

Saves the report into the specified file.

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

Syntax

'Declaration
Public Overrideable Sub SaveAs ( _
    ByVal filename As String _  
) 
public virtual void SaveAs (
    string filename
)

Parameters

  • filename
    Indicates the path and filename of the report.

Remarks

The design of the report is saved without the report data. If the file path or file extension is not specified by the file name, by default, the report is saved to your local hard drive, with the .rpt file extension.

Example

This example saves the report.

'Declaration

      Private Sub SaveReport(ByVal reportName As String)
         myReportDocument.SaveAs(reportName)
      End Sub
      
      private void SaveReport(string reportName)
      {
         reportDocument.SaveAs(reportName);
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 10

See Also

Reference

ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace