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 7 of 7
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Bugaha, NE
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Prevent the page #, url from printing on page?

    Hi. Is there any way to prevent the url from showing on the bottom of the page, or the page title/page numbers showing at the top when it's printed?

    I'm displaying a page as a word doc, but when it's printed, this info shows up. Thanks.
    This is in spanish when you're not looking.

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    First of all, is this a personal problem or something you want to prevent for all your users?

    If it's a personal problem, you go to file->page setup and alter the headers/footers.

    Otherwise, I don't think you can do this, based on this link:
    http://www.tek-tips.com/gviewthread....215/qid/826802

    I thought you could use css, but I haven't been able to find anything..

    Good luck,
    Sadiq.

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Bugaha, NE
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. I really didn't think so. Not that it's relevant to javascript, but I was going to use the response.contenttype method in ASP to display it in word format. Our intranet users (Customer service staff) would then print it off to send to a customer. Unfortunately, though, it looked tacky with the url at the bottom, and the page #'s at the top.


    Oh well...guess I'll use Crystal reports to do it. I hate Crystal reports. It's evil.
    This is in spanish when you're not looking.

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,960
    Thanks
    0
    Thanked 236 Times in 233 Posts
    It is better to just instruct the users to delete (IE) or uncheck (NS/Moz) the entries in the Headers and Footers section of the Page Setup dialog before printing.

  • #5
    New Coder
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts

    It can Be Done

    I went through this at Controlling Printing from Web

    I also went to the place which allows you to download the component: ScriptX

    I'm using the basic functions: Header and Footer control in my applications

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,960
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Yeah it can be done, but not without IE and ActiveX, and not with ActiveX disabled, and not without user downloading the control.

    But since this is for an intranet application where the environment is controlled, using an ActiveX control is quite acceptable.

  • #7
    New Coder
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So far, this is the best alternative for intranet usage that I've found


  •  

    Posting Permissions

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