Skip to main content

SchedulerExtension.GetPrintAdapter(SchedulerSettings, Object, Object) Method

Gets a print adapter for the Scheduler control, required to construct Scheduler reports.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static ASPxSchedulerControlPrintAdapter GetPrintAdapter(
    SchedulerSettings settings,
    object appointmentDataObject,
    object resourceDataObject
)

Parameters

Name Type Description
settings SchedulerSettings

A SchedulerSettings object containing SchedulerControl settings.

appointmentDataObject Object

A collection of appointments in the scheduler.

resourceDataObject Object

A collection of resources 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.

See Also