Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Print without Dialog Box in IE for KIOSK

$
0
0
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;


Looks like MS ripped out Active X from Windows 10.



Is there any alternative to this?

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>