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?
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?