ReportDesigner.DocumentSource Property
Gets or sets the document source. This is a dependency property.
Namespace: DevExpress.Xpf.Reports.UserDesigner
Assembly: DevExpress.Xpf.ReportDesigner.v20.2.dll
Declaration
Property Value
Type | Description |
---|---|
Object | An object specifying the document source. |
Remarks
The following source types are supported:
The code below demonstrates how to load a specific report to the Report Designer by assigning the report instance to the DocumentSource property.
using DevExpress.Xpf.Reports.UserDesigner;
// ...
private void SimpleButton_Click(object sender, RoutedEventArgs e)
{
XtraReport1 report = new XtraReport1();
ReportDesigner designer = new ReportDesigner();
designer.DocumentSource = report;
designer.ShowWindow(null);
}
See Also