DateHeaderCalendarFont Property
Description
Font used to display the mini calendar in the print header.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property DateHeaderCalendarFont() As Font
Remarks
Font used to display the mini calendar in the print header. The mini calendar that is printed is of the current month the day/week/month is part of.
The PrintDateHeader property is used to display or hide the print header when the calendar is printed.
Example
Changing the Mini Calendar Font (Visual Basic)
This sample illustrates how to change the font used to display the mini calendar in the print header.
Dim myFont As StdFont
Set myFont = New StdFont
myFont.Bold = False
myFont.Name = "Ravie"
myFont.Size = 12
With CalendarControl.PrintOptions
Set .DateHeaderCalendarFont = myFont
Set .DateHeaderFont = myFont
' 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)
End With
CalendarControl.PrintCalendar 0
See Also
- CalendarPrintOptions Object
- HeaderFooterFont Property
- PrintDateHeader Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.