Completed
Last Updated: 16 Mar 2015 15:03 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 27 Nov 2014 14:03
Category: Scheduler/Reminder
Type: Bug Report
0
FIX. RadScheduler - Endless loop when printing with SchedulerDetailsPrintStyle and PageBreakMode.Day
To reproduce:
1. Add several appointments:

 Random rand = new Random();
            for (int i = 0; i < 5; i++)
            {
                Appointment app = new Appointment(DateTime.Now.AddHours(i), TimeSpan.FromMinutes(45), "App" + i);
                app.BackgroundId = this.radScheduler1.Backgrounds[rand.Next(0, radScheduler1.Backgrounds.Count)].Id;
                this.radScheduler1.Appointments.Add(app);
            }
2. On RadButton.Click event try to change the PrintStyle and print the scheduler:
private void radButton1_Click(object sender, EventArgs e)
{
    SchedulerDetailsPrintStyle detailsStyle = new SchedulerDetailsPrintStyle();
    detailsStyle.PageBreakMode = PageBreakMode.Day;
    this.radScheduler1.PrintStyle = detailsStyle;
    
    this.radScheduler1.Print();
}
0 comments