# OnPrintHTMLHeader and OnPrintHTMLFooter Events

## Applies to

THtmlViewer, TFrameViewer, and TFrameBrowser components

## Declaration

property OnPrintHTMLHeader: ThtmlPagePrinted;

property OnPrintHTMLFooter: ThtmlPagePrinted;

## Description

The OnPrintHTMLHeader and OnPrintHTMLFooter events occur as each page is printed allowing the user to add a header and/or footer to the page.

See the ThtmlPagePrinted Type for usage information for these events.

## See Also:

PrintMargin Properties