SchedulerExtension.GetPrintAdapter(SchedulerSettings, Object) Method
Gets a print adapter for the Scheduler control, required to construct Scheduler reports.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v21.2.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public static ASPxSchedulerControlPrintAdapter GetPrintAdapter(
SchedulerSettings settings,
object appointmentDataObject
)
Parameters
Name | Type | Description |
---|---|---|
settings | SchedulerSettings | A SchedulerSettings object containing SchedulerControl settings. |
appointmentDataObject | Object | A collection of appointments in the Scheduler. |
Returns
Type | Description |
---|---|
ASPxSchedulerControlPrintAdapter | A ASPxSchedulerControlPrintAdapter class instance that is the print adapter bound to the scheduler control whose settings are specified. |
Remarks
You can create a new XtraSchedulerReport instance and bind it to the print adapter. To do so, you should set the XtraSchedulerReport.SchedulerAdapter property to the ASPxSchedulerPrintAdapterBase.SchedulerAdapter property value. Then, you can adjust print adapter settings as your needs dictate and load a report template via the XtraReport.LoadLayout method.
To display a report, use the ReportViewerExtension.
See our Report Templates demo module for a code sample.