SchedulerControl.IsPrintingAvailable Property
Indicates whether the Scheduler control can be printed.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true if the scheduler can be printed; otherwise, false. |
#Remarks
The Scheduler control can be printed only if the XtraPrinting Library is available. To print the control, call the SchedulerControl.Print method.
#Example
This example demonstrates the built-in print functionality of the SchedulerControl. To print the SchedulerControl, use either the SchedulerControl.Print or SchedulerControl.ShowPrintPreview methods.
Note
The SchedulerScheduler
property.
To modify print settings, use the SchedulerControl.OptionsPrint property. End-users can specify printer settings in the Page Setup Dialog invoked by calling the SchedulerControl.ShowPrintOptionsForm method.
using DevExpress.XtraScheduler;
// ...
private void ShowSchedulerPreview(SchedulerControl scheduler) {
// Check whether the SchedulerControl can be previewed.
if(!scheduler.IsPrintingAvailable) {
MessageBox.Show("The 'DevExpress.XtraPrinting.vX.Y.dll' is not found", "Error");
return;
}
// Open the Preview window.
scheduler.ShowPrintPreview();
}
private void PrintScheduler(SchedulerControl scheduler) {
// Check whether the SchedulerControl can be printed.
if(!scheduler.IsPrintingAvailable) {
MessageBox.Show("The 'DevExpress.XtraPrinting.vX.Y.dll' is not found", "Error");
return;
}
// Print.
scheduler.Print();
}