Welcome to TalkGraphics.com
Results 1 to 5 of 5

Thread: print

  1. #1
    Join Date
    Jul 2008
    Location
    Montevideo, Uruguay
    Posts
    1,345

    Default print

    I'm not sure if here it is the place to leave this question, but it has relation with web pages.
    I need to put a print button in a web page and print that web page directly, I don't want to appear the printer dialog, is it possible, how do I achieve that.
    Your help is really appreciated.
    Best regards
    Javier

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,501

    Default Re: print

    Here is the code I got from Steve Ledger that automatically creates a button which calls up the Print dialog.

    <form><input type="button" value=" Print this page "
    onclick="window.print();return false;" /></form>

  3. #3
    Join Date
    Jul 2008
    Location
    Montevideo, Uruguay
    Posts
    1,345

    Default Re: print

    Gary,
    Thank you very much for your answer, but I need to hide the print dialog, the idea is that user just click the web page's button and nothing else, I want to avoid he/she be able to change printer settings, etc.
    Best regards
    Javier

  4. #4

    Default Re: print

    I'm afraid that isn't possible Javier. The Windows print dialogue always displays before the print job is sent to the spool manager. The user may have several printers connected and need to choose which one to send the job to. They also may want to select duplex mode or to print more than one copy.
    This is an OS level operation which you can't get around.

  5. #5
    Join Date
    Jul 2008
    Location
    Montevideo, Uruguay
    Posts
    1,345

    Default Re: print

    Steave,
    Thank you very much for your answer.
    Best regards
    Javier

 

 

Bookmarks

Posting Permissions

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