When an appointment has a very short duration (seconds-level, e.g., 1 second and 0 minutes), it does not appear in the RadPrintPreviewDialog. The appointment is visible in the scheduler UI but missing from the print preview.
For example:
Dim ap1 As New AppointmentHello, Mike,
Workaround: use a custom SchedulerPrintStyle and override the GetRoundedDateTime() method as follows:
Public Class MySchedulerPrintStyle
Inherits SchedulerDailyPrintStyle
Protected Overrides Function GetRoundedDateTime(time As Date, roundUp As Boolean) As Date
If roundUp AndAlso (time.Second > 0 OrElse time.Millisecond > 0) Then
' Round up to the next whole minute before calling base logic
time = New Date(time.Year, time.Month, time.Day, time.Hour, time.Minute, 0).AddMinutes(1)
End If
Return MyBase.GetRoundedDateTime(time, roundUp)
End Function
End Class
RadScheduler1.PrintStyle = New MySchedulerPrintStyle()Regards,
Nadya | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.