Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Nov 2007
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

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

    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.

  • #2
    Regular Coder Stooshie's Avatar
    Join Date
    Mar 2008
    Location
    Dundee, Scotland
    Posts
    378
    Thanks
    9
    Thanked 39 Times in 39 Posts
    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).
    Regards, Stooshie
    O

  • #3
    New Coder
    Join Date
    Nov 2007
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks friend yo replied for my problem, Can you please tell me how can i change these settings in my browser ?

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    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.

  • #5
    Regular Coder Stooshie's Avatar
    Join Date
    Mar 2008
    Location
    Dundee, Scotland
    Posts
    378
    Thanks
    9
    Thanked 39 Times in 39 Posts
    Good catch mlseim. True, the settings are the printer settings. My bad!
    Regards, Stooshie
    O

  • #6
    New Coder
    Join Date
    Nov 2007
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks, i have changed the settings and it is working fine. Thanks to all of u.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •