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 3 of 3

Thread: Auto Printing

  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    atlanta
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto Printing

    Does anyone have any ideas how to automatically print a web page to the default printer?

    Example: on a form submit open a new window pull the data off the db, Print the page, then close the window.

    Thanks

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Bugaha, NE
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can use javascript to do:

    document.print()



    It will print, but will make the user select a printer. I asked the same question in regards to printing out a crystal reports report on another forum. If you think about it, giving a web page access to the client's default printer is kind of dangerous. Imagine a print virus that would automatically print off 10 million copies of something.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I also have the same issue. I am going to have to write a Active X or class for all client machines that use my web app. I would not recommend doing this though for a public web site.

    That would be a nasty virus especially if your printer was down the hall and you had no idea that it was printing 10 million copies.


  •  

    Posting Permissions

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