加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – IE 11中的报表查看器打印按钮

发布时间:2020-12-15 19:48:44 所属栏目:asp.Net 来源:网络整理
导读:我正在使用报表查看器远程生成报表,我希望使用IE 11在报表头中使用打印控制按钮. 这个问题类似于以下内容: Print button not available in ReportViewer using IE11 我无法解决这个问题.我已将Report Viewer 2012 Runtime升级到11.1.3452.0,将SQL Server 20
我正在使用报表查看器远程生成报表,我希望使用IE 11在报表头中使用打印控制按钮.

这个问题类似于以下内容:

Print button not available in ReportViewer using IE11

我无法解决这个问题.我已将Report Viewer 2012 Runtime升级到11.1.3452.0,将SQL Server 2008 R2升级到SP2.

我在服务器上使用Windows Server 2008 R2和.NET framework 4.5.1. IIS是版本7.

我可以在IE的所有先前版本中看到打印按钮(10,9,8,….)

我还尝试使用此行强制用户代理到IE10:
meta http-equiv =“X-UA-Compatible”content =“IE = 10”

根据上述问题的答案,我应该有打印按钮.除兼容模式或创建自己的打印按钮之外的任何其他建议?

解决方法

ReportViewer client printing feature relies on ActiveX which is not
supported by any browser except IE 9 (or earlier),that’s why you do
not get print button when Chrome,Firefox or IE10/11 browser is
involved. For printing,you should export to PDF and let the user to
print it.

http://forums.asp.net/t/1962293.aspx?+Report+Viewer+print+Button+missing+from+browser

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读