Gets or sets the name of the report (used with the Load method).
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[RefreshPropertiesAttribute(RefreshProperties.All)] [DefaultValueAttribute(null)] [MergablePropertyAttribute(false)] [ParenthesizePropertyNameAttribute(true)] public string ReportName { get; set; } |
Visual Basic |
---|
<RefreshPropertiesAttribute(RefreshProperties.All)> _ <DefaultValueAttribute(Nothing)> _ <MergablePropertyAttribute(False)> _ <ParenthesizePropertyNameAttribute(True)> _ Public Property ReportName As String Get Set |
Remarks
This property identifies the report when it is saved in a report definition file.
To retrieve a report from a report definition file, use the Load(String, String) method and pass this name as a parameter.
Examples
The following code retrieves the "Employees" report from the report definition file:
Copy CodeVisual Basic
' load report from XML file c1r.Load(DataFileName, "Employees") ' show report name Console.WriteLine(c1r.ReportName) |
Copy CodeC#
// load report from XML file c1r.Load(DataFileName, "Employees"); // show report name Console.WriteLine(c1r.ReportName); |