Using window.print without printing header and footer
Time spent in forums: 1 Week 12 h 55 m 59 sec
Reputation Power: 15
Originally Posted by schopra
Simplest way to do this is by removing Header and Footer in IE's File -> Page Setup dialog box
But that only works on your own box. I assume gbaia wants it to work with everybody who tries to print something from his site.
Personally, I think the fact this isn't possible (it isn't I can tell you) is a Good Thing. If I print something, it usually ends up filed somewhere, and it's handy to be able to find the source of that later on.
If you really want to affect the way something is printed, make a PHP page and output the document in PDF.
__________________ This is my code. Is it not nifty?
"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."