Printing from IE9 - How to directly print to the default printer without prompting for printer selection

I print from my webapplication using window.print

IE9 is used. Is it possible to directly print to the default printer, wihtout prompting for the printer name selection.

Thanks. Please help
TrialUserAsked:
Who is Participating?
 
grahamnonweilerConnect With a Mentor Commented:
There is a very popular ActiveX control used for Intranet applications (and has been used on public website applications) to handle printing from IE (all versions) avoiding the printer dialog. It is a fully signed ActiveX and does not require any changes to the security levels of IE:

http://scriptx.meadroid.com/home.aspx

ScriptX has been around for a number of years and is in use by a number of Fortune 500 companies - but predominately for Intranet applications. It is not free, there is a license fee associated with the advanced options.

If this is not for an Intranet - but in fact a public website - then the popular method is to convert the printed output to PDF server-side and then convert the "print" function to force the download of the PDF file.
0
 
COBOLdinosaurConnect With a Mentor Commented:
To override you would almost certainly need some kind of intrusive an security risky approach like using an ActiveX control.  Probably not a good idea, and the user would have to have loose security settings to allow the ActiveX.

Cd&
0
 
TrialUserAuthor Commented:
Could you provide some examples or links please.
0
 
COBOLdinosaurConnect With a Mentor Commented:
This is a little old, but probably still works:

http://www.alexthissen.nl/blogs/main/archive/2004/11/28/printing-directly-from-internet-explorer-without-print-dialog.aspx

It is not something I would ever use because of the security issue.

Cd&
0
 
TrialUserAuthor Commented:
I found some vbscript code that does a silent print. Seems to work. However I need to convert my javascript function to vbscript , so I can do rest of what I was doing.

I have started this as a new question.
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_27868010.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.