THtmlViewer, TFrameViewer, and TFrameBrowser components
property OnPrintHeader: TPagePrinted;
property OnPrintFooter: TPagePrinted;
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.