View Full Version : Problem: Page url and date is printed automatically when i print a page.

05-12-2008, 05:47 PM
I am using php script to create invoices. I am using Javascript window.print() method to print the page (current window). Problem is that it prints
page url and title(which i have given in title tag in html) at top of the page. And current date and time is also printed in footer automatically. I want to avoid these things in print. how can in do this? please help me to get rid of it.
It is urgent please guide me if you have any idea.

Thanks in anticipation.

05-12-2008, 05:53 PM
The date and time in a printed document are set by the client. You can chage the settings on your own browser but you don't, unfortunately, have any control over other client's settings (unless you are on an internal network and can go round and manually change the settings on all the PCs).

05-12-2008, 05:57 PM
Thanks friend yo replied for my problem, Can you please tell me how can i change these settings in my browser ?

05-12-2008, 06:08 PM
Go to "File", "Page Setup" ... look for "margins, headers & footers".
Remove any headers and footers.

This is an adjustment to your printer properties, not browser.

05-13-2008, 05:42 PM
Good catch mlseim. True, the settings are the printer settings. My bad!

05-14-2008, 03:31 PM
Thanks, i have changed the settings and it is working fine. Thanks to all of u.