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.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public static ASPxSchedulerControlPrintAdapter GetPrintAdapter(
SchedulerSettings settings,
object appointmentDataObject
)
#Parameters
Name | Type | Description |
---|---|---|
settings | Scheduler |
A Scheduler |
appointment |
Object | A collection of appointments in the Scheduler. |
#Returns
Type | Description |
---|---|
ASPx |
A ASPx |
#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.
See our Report Templates demo module for a code sample.