[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.Designer.Report

Report Property

Report

Gets or sets a value representing the currently loaded report. This object provides access to the report's layout and control properties.

Declaration
[Browsable(false)]
public object Report { get; set; }
Property Value
Type Description
object

The report object currently being designed.

Remarks

This property allows for manipulation of the report's elements, such as adding or removing controls, modifying properties, and accessing the report's data sources.

Examples
// Determine the file extension based on the report type.
// Don't use this property to set the report, use Desginer.LoadReport instead.
var extension = switch designer.Report {
	PageReport => ".rdlx",
	SectionReport => ".rpx",
	_ => throw new Exception("Unknown report type.")
};
Exceptions
Type Condition
Exception

Thrown if an attempt is made to set the report to an invalid or unsupported type.