HTML - How to hide header and footer from browser print

liunx

Guest
How would I go about coding a page to NOT print the header and footer of a page that is printed through a browser? I am working on an online application for a company, and they want to be able to print invoices. It doesn't look very professional with the header and footer on the page (page title, page number, URL, date).<br />
<br />
Any help would be greatly appreciated....thanks!<!--content-->Here's a very sweet little product that lets you do all sorts of stuff with web printing.<br />
<br />
MeadCo's ScriptX (<!-- m --><a class="postlink" href="http://www.meadroid.com/scriptx/index.htm">http://www.meadroid.com/scriptx/index.htm</a><!-- m -->) <br />
<br />
It can take off headers/footers as well as allow you to make your own. It also allows you to ignore the "Print Window" screen so you can force your page to be printed a certain way without the user interfering.<!--content-->I'm more interested in a way to do it in the HTML...<br />
<br />
...I know you can code it so buttons and other things don't show, so I was wondering about the header and footer...<br />
<br />
Thanks, though...<!--content-->in html, not possible<!--content-->hmmm... not too sure I understand but what I do is I open another browser window with a print friendly html format of the invoice!?<!--content-->they are talking about the url thwat is printed on the very bottom of everypage when it prints. that is there by the browser and I don't think even css will take it off.<!--content-->well then... it all depends on the setup of the user!? Non? In the print setup stuff?!<!--content-->Originally posted by scoutt <br />
they are talking about the url thwat is printed on the very bottom of everypage when it prints. that is there by the browser and I don't think even css will take it off. <br />
<br />
That's exactly what I'm talking about...<!--content-->Originally posted by karinne <br />
well then... it all depends on the setup of the user!? Non? In the print setup stuff?! <br />
<br />
I don't know if the user can control that...without copying and pasting to a Word doc, or some other editor.<!--content-->Yeah but.... what about this (see attached)!?<br />
<br />
Or.... you can create your invoice with PDF and Perl... make a script that'll dump your stuff in a PDF format?<!--content-->That's exactly what I was looking for...<br />
<br />
...I never knew that was there. I guess I would have never looked there. Thanks for your help, karinne!<!--content-->Woo-hooo.... we figured it out! Alright! Another satisfied customer! :D<!--content-->yeah, but you are going to tell the user to clear that out all the time before they print? no that is not the option to go to. I beleive css can change that and I am looking.<!--content-->Really? Wow.... that'd be nice to know! At least the page setup is an interim solution until we find something else!<!--content-->Originally posted by scoutt <br />
yeah, but you are going to tell the user to clear that out all the time before they print? no that is not the option to go to. I beleive css can change that and I am looking. <br />
<br />
The users aren't going to be printing their own invoices. This will be done by one of the employees of the company I am doing the work for, on the company's PC.<br />
<br />
...this is the solution I need....thanks for everyone's input!<!--content-->Originally posted by SUpitch15 <br />
The users aren't going to be printing their own invoices. This will be done by one of the employees of the company I am doing the work for, on the company's PC.<br />
<br />
...this is the solution I need....thanks for everyone's input! <br />
<br />
All is well then.... but scoutt.... I'd still like to know! ;)<!--content-->I'd love to find this out with CSS as well. You can disable it with local IE settings:<br />
<br />
Click FILE, PAGE SETUP, <br />
<br />
and clear out the header and footer textareas.<!--content-->nope you can't, which is what I thought.<br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=14580&highlight=%40media">http://www.htmlforums.com/showthread.ph ... t=%40media</a><!-- m --><br />
<br />
that will tell you what you want. and it is an ActiveX solution<br />
<br />
SUpitch15, that is fine then.<!--content-->Ahhhh nuts!<!--content-->Originally posted by scoutt <br />
nope you can't, which is what I thought.<br />
<br />
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=14580&highlight=%40media">http://www.htmlforums.com/showthread.ph ... t=%40media</a><!-- m --><br />
<br />
that will tell you what you want. and it is an ActiveX solution<br />
<br />
SUpitch15, that is fine then. <br />
<br />
Thank you for your efforts...I hope I didn't seem ungrateful or unappreciative. Karinne's solution was all I needed, since it only has to be done on one machine.<br />
<br />
Thanks!!<!--content-->no problem, it is sensible to do it on 1 machine as opposed to the whole net doing it. good luck :)<!--content-->
 
Back
Top