$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Scheduler control for Windows Forms
Create rich Outlook style functionality and add rich scheduling interfaces to C# Windows application
Home > WinForms UI Controls > User Manual > Styling Scheduler Printing in C#

Setting Print Styles for KetticScheduler Control in C#.NET

KetticScheduler control contains a variety of settings for the interface designers to define the date range of printing and the appearance of the printed pages in C#.NET template project. This is achieved through the objects of type SchedulerPrintStyle. The SchedulerPrintStyle C# class can’t be instantiated directly, so we should implement one of the detailed styles, like DailyPrint, WeeklyPrint, MonthlyPrint, and DetailsPrint.

Properties for Setting Print Styles of KetticScheduler control

To customize the print style of KetticScheduler, we shall use the several properties of object of type SchedulerPrintStyle, including
  • DateStartRange and DateEndRange, these two properties are able to define the date range that will be printed
  • TimeStartRange and TimeEndRange, these two properties are able to set the time frame which will be printed for each date in the date range period
  • AppointmentFont, DateHeadingFont and PageHeadingFont, these properties are used to customize the fonts for the appointments, dates and page headers respectively
  • Visual parts setting, the SchedulerPrintStyle contains various parts, including page title, calendar in the page title, notes area, etc, that the developers can set if display them or not
  • Width and Height, these properties are used to change the size of the visual areas

C# Customize Daily Print Style for KetticScheduler

To define the daily print style of KetticScheduler, we shall use the SchedulerDailyPrintStyle C# class, which shows each day separately and arrange the appointments like the day view. The C# code sample shows the setting of daily print style of KetticScheduler

SchedulerDailyPrintStyle dailyStyle = new SchedulerDailyPrintStyle();
dailyStyle.HoursColumnWidth = 90;
dailyStyle.MaxAllDayAreaHeight = 80;
dailyStyle.AllDayAppointmentHeight = 30;
dailyStyle.TwoPagesPerDay = true;

C# Customize Weekly Print Style for KetticScheduler

To define the weekly print style of KetticScheduler, we shall use the SchedulerWeeklyPrintStyle C# class, which shows each week separately and arrange the appointments in a gird where a single cell stands for a day of the week. The C# code sample shows the setting of weekly print style of KetticScheduler

SchedulerWeeklyPrintStyle weeklyStyle = new SchedulerWeeklyPrintStyle();
weeklyStyle.ExcludeNonWorkingDays = true;
weeklyStyle.DaysLayout = WeeklyStyleLayout.TopToBottom;
weeklyStyle.TwoPagesPerWeek = true;

C# Customize Monthly Print Style for KetticScheduler

To define the monthly print style of KetticScheduler, we shall use the SchedulerMonthlyPrintStyle C# class, which shows each month separately and arrange the appointments in a gird where a single cell stands for a day of the month. The C# code sample shows the setting of Monthly print style of KetticScheduler

SchedulerWeeklyPrintStyle weeklyStyle = new SchedulerWeeklyPrintStyle();
weeklyStyle.ExcludeNonWorkingDays = true;
weeklyStyle.DaysLayout = WeeklyStyleLayout.TopToBottom;
weeklyStyle.TwoPagesPerWeek = true;

C# Customize Details Print Style for KetticScheduler

To define the print style of KetticScheduler in a continuous manner, we shall use the SchedulerDetailsPrintStyle C# class, which print appointments in ascending order of their start date and will hide the page headers. The C# code sample shows the setting of details print style of KetticScheduler

SchedulerDetailsPrintStyle detailsStyle = new SchedulerDetailsPrintStyle();
detailsStyle.AppointmentDateWidth = 300;
detailsStyle.AppointmentTitleHeight = 50;
detailsStyle.DayHeaderHeight = 80;
detailsStyle.PageBreakMode = PageBreakMode.Day;
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls