Windows 10 forum


Print without Dialog Box in IE

Below code works for IE (11,10) in Windows 7, but does not work in Windows 10.

var PrintCommand = '<OBJECT ID="PrintCommandObject" WIDTH=0 HEIGHT=0 ';
PrintCommand += 'CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', PrintCommand);
PrintCommandObject.ExecWB(6, 1); PrintCommandObject.outerHTML = "";
document.body.innerHTML = oldPage;

From below link looks like MS ripped out Active X from Windows 10.

Is there any alternative to this?

Discussion is locked
You are posting a reply to: Print without Dialog Box in IE
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Print without Dialog Box in IE
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
This is due to tightening up the security.

In reply to: Print without Dialog Box in IE

It can irk those that don't want this but there's nothing wrong here. Just update your instructions on how to print to the users.

Collapse -
Print without Dialog Box in IE for KIOSK

In reply to: This is due to tightening up the security.

Well, I bet users won't like it on a KIOSK.

Collapse -
Just checking.

In reply to: Print without Dialog Box in IE for KIOSK

Did you call this in? I mean, once in a while a developer will not do their due diligence. I've only called or asked on MSDN once in a while for things like this.

Also you have Stack Overflow and other ways to print. I'm not employed by you so I can only share where I'd go next.

Post was last edited on October 31, 2016 9:34 AM PDT

Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Sublime suburban chariot

High on style and technology, the 2019 Volvo XC90 is an incredibly satisfying everyday crossover.