Click to See Complete Forum and Search --> : Can we remove the footer from a printed page?
castellana
October 9th, 2005, 10:59 PM
I have place a "Print this Page" script on a web page, but I do NOT want the URL of that page to show up.
I do not mind the header, or Title of the page (in fact, this is very useful).
Do you know of any script that prevents the footer from being printed?
Thank you!
Castellana
PeejAvery
October 9th, 2005, 11:25 PM
PHP or ASP can do this. I do not know ASP but the PHP printer commands (http://us3.php.net/manual/en/ref.printer.php) will.
hepi
October 10th, 2005, 04:27 AM
Hi,
I think that PHP doesn't help here because the document is printed out of the web browser, right? The print job is not started on the server but on the client.
So it depends on the printer / page settings of the web browser the user uses how a page is printed. This can't be influenced by Javascript.
But you can offer a PDF document with the web page content instead to make sure that you are able to decide what's on the page and what's not. You can use the pdf-generating functions of PHP to do this but it's not simple.
Best regards,
Henning
PeejAvery
October 10th, 2005, 07:46 AM
I think that PHP doesn't help here because the document is printed out of the web browser, right? The print job is not started on the server but on the client.
So it will only run on the side of the php.exe interpreter? No wonder I couldn't get it to work right.
Castellana, out of curiosity, are you really "una chica castellana?"
castellana
October 10th, 2005, 05:57 PM
peejavery, yes I am una chica castellana. Hahahaha.
I think I am going to remove the "Print this Page" option, and will have an email sent to the customer instead. This page, by the way, is just a compilation of all the info a person enters when registering in this site. I wanted to give my customer the option of printing the page AND getting the email. But I guess an email will be more than sufficient.
THANK YOU SO MUCH FOR YOUR HELP.
Castellana
PeejAvery
October 10th, 2005, 06:09 PM
I was curious because I just lived in Peru for a year. I haven't heard "Castellana" for a long time even though I still speak Spanish with my friends.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.