By default printing and previewing is enabled in the C1Schedule control. If you prefer that end-users not be able to print and preview schedule information or your application does not require printing functionality, you can disable printing by using the IsPrintingEnabled property. If IsPrintingEnabled is set to False the C1Schedule control will not try to find and load the Preview for WinForms assemblies and will not show printing and print preview options at run time in context menus and in the AppointmentForm toolbar.
To disable printing, set the IsPrintingEnabled property to False either in the Properties window or in code.
Locate the IsPrintingEnabled property in the C1Schedule Properties window and set it to False:
Add the following code to the Form_Load event to set the IsPrintingEnabled property to False:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Schedule1.PrintInfo.IsPrintingEnabled = False |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1Schedule1.PrintInfo.IsPrintingEnabled = false; |