kb4021558之后的IE11 Windows 7打印问题 [英] IE11 Windows 7 Print issue after kb4021558

查看:48
本文介绍了kb4021558之后的IE11 Windows 7打印问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对这个含糊不清的问题表示歉意,但我要拔头发了.自从此更新以来,我们已经接到了许多有关从Web应用程序打印的电话.我们的网络应用程序使用iframe,并且使用css @media print隐藏该iframe以外的所有内容以进行打印.自更新以来,用户会收到错误404(未找到)而不是实际页面.从网络跟踪看来,IE会在本地目录(如D3CD911.htm)中创建一个temp.htm文件,然后下载css/js资源,然后最终使该调用/D3CD911.htm.这是在拨打电话www.mywebsite.co.uk/D3CD911.htm.这显然在网站上不存在,因此返回了404. 我努力寻找问题的解决方案,而且似乎并没有影响到其他公共网站.我认为问题出在window.print()方法上.我可以在 https://www.primefaces.org/showcase/ui/misc/printer.xhtml .如果单击打印按钮,将收到错误消息.尽管如果您随后使用浏览器的打印"按钮使用了jqprint javascript函数,则它也会失败.

Apologies for the slightly vague question but I'm pulling my hair out. Since this update we have had numerous calls regarding printing from our web app. Our web app uses an iframe and we use css @media print to hide all but this iframe for printing purposes. Since the update the user receives an Error 404--Not Found instead of the actual page. It would seem from the network trace that IE creates a temp .htm file in the local directory like D3CD911.htm, it then downloads css/js resources and then finally it makes this call /D3CD911.htm. This is making a call to www.mywebsite.co.uk/D3CD911.htm. This obviously does not exist on the website so the 404 is returned. I struggling to find a pattern to the problem and it doesn't seem to be affecting other public sites. I think the issue is with window.print() method. I can semi reproduce it here at https://www.primefaces.org/showcase/ui/misc/printer.xhtml. If you click the print button you will get the error. Although this is using the jqprint javascript function if you then use the browser print button it also fails.

任何指导将不胜感激.

推荐答案

更新: Microsoft现在已经发布了一个修补程序:

Update: Microsoft have now released a patch: Microsoft IE patch

只想总结一下我发现的解决方法,这些解决方法已发布在这里.

Just wanted to summarise the workarounds I've found and which have been posted here.

1)如果使用自己的打印按钮,请更改为使用document.execCommand('print', false, null);.使用document.queryCommandSupported('print')测试支持,并在不支持的情况下致电window.print()(仅适用于Firefox)

1) If you are using your own print button change to use document.execCommand('print', false, null);. Test support using document.queryCommandSupported('print') and call window.print() if not supported (Prob just Firefox)

2)使用打印预览.另外,选择要打印的页面部分,右键单击并选择打印预览.然后选择As selected on screen.

2) Use Print Preview. Additionally select the part of the page to print, right click and select print preview. Then select As selected on screen.

3)使用其他浏览器,例如Chrome

3) Use another browser like Chrome

4)卸载更新

5)等待Microsoft修复.他们的知识库页面 KB链接已作为一个已知问题进行了更新.因此,您假设正在修复.

5) Wait for Microsoft fix. Their KB page KB Link has been updated with this as a known issue. Therefore you assume a fix is on the way.

这篇关于kb4021558之后的IE11 Windows 7打印问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆