SchedulerPrintingSettings Class
Contains settings (report instance, print adapter and report layout template) that are required to preview a scheduler as it will appear if printed.
Namespace: DevExpress.Xpf.Scheduler.Reporting
Assembly: DevExpress.Xpf.Scheduler.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
public class SchedulerPrintingSettings :
BaseSchedulerPrintingSettings,
ISchedulerPrintingSettings
Remarks
Important
You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.
To invoke the Print Preview dialog for a scheduler, perform the following:
- Create the
SchedulerPrintingSettings
object, and specify its BaseSchedulerPrintingSettings.ReportInstance, BaseSchedulerPrintingSettings.SchedulerPrintAdapter and SchedulerPrintingSettings.ReportTemplatePath properties. - Call the SchedulerReportConfigurator.Configure method with the
SchedulerPrintingSettings
object passed as a parameter. This will configure the BaseSchedulerPrintingSettings.ReportInstance scheduler report. - Call the PrintHelper.ShowPrintPreview or PrintHelper.ShowPrintPreviewDialog method with the configured BaseSchedulerPrintingSettings.ReportInstance scheduler report passed as a parameter.