Link to home
Start Free TrialLog in
Avatar of Meps
MepsFlag for United States of America

asked on

How to automaticly print from the web

I know this has been asked, but I have researched this and found that either the links are old and not valid any more, or I simply don't understand them.
I built an Web application that I would like it to print to a printer after the user clicks on a recieve button.  So when the user recieves in a item, the application does it's thing to the database, then I want a label to come out of the printer, with little or no other user interaction.  I have heard of a javascript that pops up the print dialog box for you on a page.  I am looking to see if I can go beyond that, and have it print automaticly.  It is a intranet site with IE 6, on a coldfusion server.   Any ideas, good links, advice, or examples?

What I was thinking was the application to pop up a single window with only the information I want to print and it prints it automaticly and then close

I have everything working except for the print part.  I know what I need to print, which by the way is a small table with some fields.  This will be a specific single user feature to print, but I would like to keep this on the web, instead of building another interface(ie Access with VBA coding).  Thanks in advanced.
ASKER CERTIFIED SOLUTION
Avatar of Razix
Razix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ted Bouskill
Thankfully for security reasons the operating system will NOT give the browser full control of the printing process.  The user will have to respond to the print dialog box.

Pop ups are bad enough, imagine if a website could print without permission by the user?  Imagine the spam!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Meps

ASKER

Thanks everyone for your replies, sorry I was directed to do something last week.  I will be testing everyone's ideas, and then hopefully award points.  Again, thanks