Share via


ReportDocument.Name Property

Gets the report name. For the main report, the report name is empty.

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

Syntax

'Declaration

Public Overrideable ReadOnly Property Name As String
public virtual string Name {get;}

Example

This example returns the report name.

'Declaration

      Private Function GetReportName(ByVal myReportDocument As ReportDocument) As String
        Dim reportName As String = "Main Report"
        If myReportDocument.IsSubreport() Then
          reportName = myReportDocument.Name
        End If
      End Function
      
      private string GetReportName(ReportDocument reportDocument)
      {
        string reportName = "Main Report";
        if (reportDocument.IsSubreport())
        {
          reportName = reportDocument.Name;
        }
        return reportName;
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace