DateHeaderFont Property
Description
Font used to display normal text in the print header.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property DateHeaderFont() As Font
Remarks
Font used to display normal text in the print header. This is the text that displays the month, day, and day of week in the print header.
The PrintDateHeader property is used to display or hide the print header when the calendar is printed.
Example
Changing the Header Font (Visual Basic)
This sample illustrates how to change the font used to display normal text 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
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.