Back to Devexpress

XtraSchedulerReport.SchedulerAdapter Property

windowsforms-devexpress-dot-xtrascheduler-dot-reporting-dot-xtraschedulerreport-672372d9.md

latest2.5 KB
Original Source

XtraSchedulerReport.SchedulerAdapter Property

Gets or sets the scheduler adapter for the current report.

Namespace : DevExpress.XtraScheduler.Reporting

Assembly : DevExpress.XtraScheduler.v25.2.Reporting.dll

NuGet Package : DevExpress.Win.SchedulerReporting

Declaration

csharp
[DefaultValue(null)]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public SchedulerPrintAdapter SchedulerAdapter { get; set; }
vb
<DefaultValue(Nothing)>
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
Public Property SchedulerAdapter As SchedulerPrintAdapter

Property Value

TypeDefaultDescription
SchedulerPrintAdapternull

A SchedulerPrintAdapter class descendant, representing a SchedulerControl or a SchedulerStorage print adapter.

|

Remarks

Use this property to set the scheduler print adapter, which supplies the data to the report. The main purpose of this adapter is to compose a data set that will be used in the report. There are two print adapters: a storage and control adapter.

The following code illustrates how to use the SchedulerAdapter property when creating a report for a given SchedulerStorage:

csharp
using DevExpress.XtraScheduler.Reporting;
// ...
XtraSchedulerReport1 xr1 = new XtraSchedulerReport1();
xr1.SchedulerAdapter = new SchedulerStoragePrintAdapter(this.schedulerStorage1);
xr1.ShowPreview();
vb
Imports DevExpress.XtraScheduler.Reporting
' ...
Private xr1 As XtraSchedulerReport1 = New XtraSchedulerReport1()
Private xr1.SchedulerAdapter = New SchedulerStoragePrintAdapter(Me.schedulerStorage1)
xr1.ShowPreview()

See Also

XtraSchedulerReport Class

XtraSchedulerReport Members

DevExpress.XtraScheduler.Reporting Namespace