Printing Headers and Footers in IE 7 and IE 8
Posted by William Diaz on July 8, 2010
Every now and then the need arises where a user needs to print a web page with a custom header and for filing or reference purposes. We are still pretty much running on an Internet Explorer 7 platform (sigh) so this can be somewhat cryptic as IE 7 uses codes to determine what and where header and footer information is printed. Header/Footer codes are accessed from the File > Page Setup menu in IE:
Note: codes are case sensitive.
&w | Window Title |
&u | URL |
&d | Short date |
&D | Long date |
&t | Time as set by Regional Settings in Control Panel |
&T | Time in 24 hour format |
&p | Current page |
&P | Total Pages |
&& | Insert a single ampersand |
&b | Right justify text follwing these characters |
&b&b | Center align after 1st &b, right justify after 2nd &b, ie &b”TEXT”&B (TEXT will be centered) |
The default setup for header/footer in case you need to go back is:
&w&bPage &p of &P
&u&b&d
You can mix and match the codes to customize the output to whatever you want. For example, you can change the header to indicate you printed this URL at on that date by using “DiazW printed from &b&u &b on &d” in the header which would output as:
And in the footer “Client\Matter &b000009.010100”:
In IE8 this is more user-friendly:
Leave a Reply