Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

[Browsable(false)]
public bool IsPrintingAvailable { get; }

#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 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