在没有“打印”对话框的情况下打印时IE11崩溃

时间:2015-06-14 11:11:17

标签: internet-explorer

在IE10兼容模式下运行时,IE11在自动打印(无打印对话框)期间崩溃。

这是导致IE11崩溃的示例HTML代码:

<html lang="en">
    <head>
        <meta http-equiv="x-ua-compatible" content="IE=10" />
        <meta charset="utf-8"></meta>
        <title>Microsoft Internet Explorer print test</title>

        <script language="VBScript">
            sub Print()
                OLECMDID_PRINT = 6
                OLECMDEXECOPT_DONTPROMPTUSER = 2
                OLECMDEXECOPT_PROMPTUSER = 1
                call WB.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,1)
            End Sub
            document.write "<object id='WB' width='0' height='0' classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>"
        </script>

    </head>
    <body>
        Print test.
        <a href="#" onclick="Print()">Print</a>     
    </body>
</html>

这是事件日志中报告的错误:

Faulting application name: IEXPLORE.EXE, version: 11.0.9600.17840, time stamp: 0x555fe1bb
Faulting module name: shlwapi.DLL, version: 6.1.7601.17514, time stamp: 0x4ce7b9e2
Exception code: 0xc0000005
Fault offset: 0x0001bb3a
Faulting process id: 0x2434
Faulting application start time: 0x01d0a69151fbbc71
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Windows\syswow64\shlwapi.DLL
Report Id: 92c64479-1284-11e5-b1ca-005056c00008

安装kb3021952后开始发生这种情况。卸载kb3021952无法解决问题。

此问题是否有任何已知的解决方法?在IE中自动打印的其他选项有哪些?可能有一个未记录的命令行参数可用于此目的(相当于Chrome中的“--kiosk-printing”)?

1 个答案:

答案 0 :(得分:0)