Skip to content

PrintOptions Property

Description

Options that specify how the Calendar View should look when sent to a print device.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property PrintOptions() As [CalendarPrintOptions](XtremeCalendarControl~CalendarPrintOptions.md)

Remarks

The PrintOptions property allows you to manually set the Print Options that can be set using the "Page Setup" dialog that ShowPrintPageSetup displays. These options affect how the Calendar View looks when printed.

Using PrintOptions, you can access print options such as:

See the CalendarPrintOptions members for detailed descriptions of each print option that can be set.

Example

Manually Setting Print Options (Visual Basic)

This sample illustrates how to manually set the Print Options that can be set using the Page Setup dialog that ShowPrintPageSetup displays.

With CalendarControl.PrintOptions  
    ' Measurement units are mm*100 or inches*1000.  
    .MarginBottom = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)  
    .MarginLeft = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)  
    .MarginRight = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)  
    .MarginTop = IIf(.MarginsMeasureMetrics, 1.5 * 100, 1.5 * 1000)  
    .PrintDateHeader = False  
End With  

CalendarControl.PrintCalendar 0

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.