THtmlViewer, TFrameViewer, and TFrameBrowser components
property OnPrintHTMLHeader: ThtmlPagePrinted;
property OnPrintHTMLFooter: ThtmlPagePrinted;
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.