header
Description
Specifies the string to be used as the header for HTML print-outs. The string can include the standard Internet Explorer header/footer metasymbols (see below for details). If you need to use HTML for your headers and footers, please see Enhanced Formatting.
The header property is part of the basic freely-distributable printing subset.
This is a read/write property.
Syntax
printing.header = sHeader
To print specific information as part of the header or footer, include the following characters as part of the string:
| Shorthand | Meaning |
|---|---|
| &w | Window title |
| &u | Page address (URL) |
| &d | Date in short format (as specified by Regional Settings in Control Panel) |
| &D | Date in long format (as specified by Regional Settings in Control Panel) |
| &t | Time in the format specified by Regional Settings in Control Panel |
| &T | Time in 24-hour format |
| &p | Current page number |
| &P | Total number of pages |
| && | A single ampersand (&) |
| &b | The text immediately following these characters will be centered |
| &b | The text immediately following the first "&b" will be centered, and the text following the second "&b" will be right-justified |
Example
Check out the Basic Printing sample.