SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to hide or take the number of copies from print dialog?

    Hello Friends,

    My application is in php. i want to take a print out of the current page. I have done with the help of window.print(). That is working fine.

    But there is a copies field in the dialog. I want to take this value from my php or i should hide this field.

    Please help me out!

    Thanks.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,861
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It can't be done. JavaScript can open the print dialog but cannot do anything else with it apart from that. The print diaglog is a part of the operating system so only the people who write the operating system can make changes to it.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2010
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can u plz help me? Will it be done by anyother way?

    Quote Originally Posted by felgall View Post
    It can't be done. JavaScript can open the print dialog but cannot do anything else with it apart from that. The print diaglog is a part of the operating system so only the people who write the operating system can make changes to it.


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
  •