Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Print a whole DayView
posted

Hello,

I'm trying to print all appointments of a single day using the UltraschedulePrintDocument.TemplateDayView property. I need to show the slots from 0:00 to 23:59, in one or more pages, but seems there's no way to get it.

If the DayView is has lees than four all-day-appointments, it prints all slots, but if i add a fourth, it prints the slots from 0:00 to 12:00 leaving a blank space at the bottom of the page

This is the code i've been using:

Using uspd As New UltraSchedulePrintDocument
Dim previo As New Infragistics.Win.Printing.UltraPrintPreviewDialog
previo.Document = uspd
uspd.CalendarInfo = infoCalendario1
uspd.CalendarLook = UltraCalendarLook1
uspd.TemplateDayView = vistaDia
uspd.PrintStyle = SchedulePrintStyle.Daily
uspd.StartTime = New TimeSpan(0, 0, 1)
uspd.EndTime = New TimeSpan(23, 59, 59)
uspd.PrinterSettings.PrinterName = General.ImpresoraPredeterminada
uspd.MaximumPagesPerDay = 2
previo.ShowDialog()
End Using

It does not matter if two or three pages are printed, but the fact is that allways prints one page. Can anyone help me or at least, give me a clue about what could be happening?

 

P.S. As you can see, english it's not my native language; sorry about my grammar.

Parents Reply Children
No Data