DailyPrintStyle.UseActiveViewTimeScale Property

Gets or sets whether the scheduler attempts to use the DayView.TimeScale value to determine the horizontal grid lines printed in the schedule .

Namespace: DevExpress.XtraScheduler.Printing

Assembly: DevExpress.XtraScheduler.v20.2.dll


public bool UseActiveViewTimeScale { get; set; }
Public Property UseActiveViewTimeScale As Boolean

Property Value

Type Default Description


true, to use the time scale of the scheduler view to determine the time scale in the printout; otherwise, false.


When the UseActiveViewTimeScale is set to true, the print algorithm attempts to set the DayView.TimeScale value as the time scale of the view being printed. If the printed schedule exceeds the page height, the method iterates over the DailyPrintStyle.TimeSlots collection to find a time scale for which the printout fits the page.

To reduce the height of the printout so that the printed schedule uses the time scale of the active scheduler view, adjust the print style as follows:

The following code sample illustrates the use of the UseActiveViewTimeScale property.


DailyPrintStyle printStyle = (DailyPrintStyle)schedulerControl1.PrintStyles[SchedulerPrintStyleKind.Daily];
printStyle.UseActiveViewTimeScale = true;
printStyle.PrintTime.Start = schedulerControl1.SelectedInterval.Start.TimeOfDay;
printStyle.PrintTime.End = schedulerControl1.SelectedInterval.End.TimeOfDay;
if ((this.schedulerControl1.DayView.TimeScale.Hours < 1) || (printStyle.PrintTime.Duration.TotalHours > 4))
    printStyle.CalendarHeaderVisible = false;
    printStyle.AutoScaleHeadingsFont = false;
    printStyle.HeadingsFont = new Font("Verdana", 8);
    printStyle.AppointmentFont = new Font("Verdana", 8);
See Also