SchedulerControl.IsPrintingAvailable Property

Indicates whether the Scheduler control can be printed.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.dll

Declaration

[Browsable(false)]
public bool IsPrintingAvailable { get; }
<Browsable(False)>
Public ReadOnly Property IsPrintingAvailable As Boolean

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.

Examples

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 SchedulerControl can be printed and previewed only if the XtraPrinting Library is available. To verify that printing the scheduler is possible, use the SchedulerControl.IsPrintingAvailable 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();
}
See Also