Share via


ReportDocument.FileName Property

Specifies the name of the report file. If protocol or drive letter is specified, a "ras://" default is assumed.

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

Syntax

'Declaration

Public Overrideable Property FileName As String
public virtual string FileName {get; set;}

Example

This example returns the filename of the report.

'Declaration

      Private Function GetReportFileName(ByVal myReportDocument As ReportDocument) As String
        GetReportFileName = myReportDocument.FileName
      End Function
      
      private string GetReportFileName(ReportDocument reportDocument)
      {
        return reportDocument.FileName;
      }
      

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