Alex Rivera | Logout

Print directly from browser without print popup window

Asked 2009-07-08T08:40:55.717
27

As it said in the subject I've to create a feature for a web-based application that will allow users to send print directly without prompting any dialog boxe just make the print i.e click and print, simple! but not for me :(.

Please, suggest what would be the best option and how should I write it up (technology).

Suggest please!

Thanks.

EDIT: The print should be send on the user's default printer.

Edit
Report

2 Answers

3

IE9 no longer supports triggering the Print() VBScript by calling window.print() like IE7 and IE8 do, and thus window.print() will now always trigger the print dialog in IE9.

The fix is pretty simple. You just need to call Print() itself, instead of window.print() in the onclick event.

I've described the fix in more detail in an answer to another question, with a working code example sporting slightly updated HTML syntax (as much as possible while still tested as working code).

You can find that sample code here:

Bypass Printdialog in IE9

answered 2012-09-27T18:04:01.627
0

For IE browsers, the "VBScript solution" works.

But as mentioned by @purefusion at Bypass Printdialog in IE9, Use Print() rather than window.print()

answered 2013-03-16T13:48:10.983

Your Answer