PrintPageHeaderFooter Object
Description
Represents a custom caption string for Print Options which could be customized for a top line of the print header (header header) and a bottom line (header footer).
For a list of all members defined in this module, see PrintPageHeaderFooter Members.
Example
Header and Footer Sample (Visual Basic)
This sample illustrates how to display a header and footer for a printed calendar.
' Header ---------------------------------------------------
' CalendarControl.PrintOptions.Header.Font.Name = "Courier New"
' CalendarControl.PrintOptions.Header.Font.Bold = True
' CalendarControl.PrintOptions.Header.Font.SIZE = 10
CalendarControl.PrintOptions.Header.TextLeft = "(c)1998-2009 Codejock Software, All Rights Reserved."
CalendarControl.PrintOptions.Header.TextCenter = "Calendar Control"
CalendarControl.PrintOptions.Header.TextRight = "Page 1 of 1 "
' Footer ---------------------------------------------------
' CalendarControl.PrintOptions.Header.Font.Italic = True
CalendarControl.PrintOptions.Footer.TextLeft = "Date: " & DateValue(Now)
CalendarControl.PrintOptions.Footer.TextCenter = "Codejock Software, " & vbLf & " Print calendar example "
CalendarControl.PrintOptions.Footer.TextRight = "Time: " & TimeValue(Now)
' Other fonts
' CalendarControl.PrintOptions.DateHeaderFont.SIZE = 12
' CalendarControl.PrintOptions.DateHeaderCalendarFont.SIZE = 10
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.