Contents
- Index
- Previous
- Next
PrintWithHeaderAndFooter method
Declaration
function PrintWithHeaderAndFooter(const CustomHeader, CustomFooter: WideString; const OptionalHeaderHTML: AnsiString = ''; DisplayPrintDialog: Boolean = False): Boolean;
Description
Prints the current document with the application-supplied CustomHeader and CustomFooter strings.
The OptionalHeaderHTML parameter may be the empty string (''), or a string that contains an HTML that serves as an "optional header". If used, the string must contain a full, valid HTML document source, not HTML fragments.
The optional DisplayPrintDialog parameter allows to display the print dialog before printing the document.
Example
ProfDHTMLEdit21.PrintWithHeaderAndFooter(
'This is my header string.',
'This is my footer string.',
'<html><body><strong>Printed By:</strong> My Name<p></body></html>'
);