[]
Gets or sets a value representing the currently loaded report. This object provides access to the report's layout and control properties.
[Browsable(false)]
public object Report { get; set; }
Type | Description |
---|---|
object | The report object currently being designed. |
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.
// 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.")
};
Type | Condition |
---|---|
Exception | Thrown if an attempt is made to set the report to an invalid or unsupported type. |