# OnPrintHeader and OnPrintFooter Events

## Applies to

THtmlViewer, TFrameViewer, and TFrameBrowser components

## Declaration

property OnPrintHeader: TPagePrinted;

property OnPrintFooter: TPagePrinted;

## Description

The OnPrintHeader and OnPrintFooter events occur as each page is printed allowing the user to add a header and/or footer to the page. See the TPagePrinted Type for further information and an example.

Note:

These events are present to support existing applications. For new work, the OnPrintHTMLHeader and OnPrintHTMLFooter events provide additional features and ease of use.

## See Also:

PrintMargin Properties

OPrintHTMLHeader and OnPrintHTMLFooter events