View Full Version : Auto Printing

02-06-2003, 04:58 PM
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.


02-06-2003, 06:03 PM
You can use javascript to do:


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.

02-06-2003, 06:09 PM
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.