简体   繁体   English

IE 11中的Report Viewer打印按钮

[英]Report Viewer Print Button in IE 11

I am using Report Viewer to remotely generate reports and I wish to have the print control button in the report header using IE 11. 我正在使用报表查看器远程生成报表,我希望使用IE 11在报表头中使用打印控制按钮。

This question is similar to the following: 这个问题类似于以下内容:

Print button not available in ReportViewer using IE11 使用IE11在ReportViewer中无法使用打印按钮

I have not been able to solve this issue. 我无法解决这个问题。 I have upgraded Report Viewer 2012 Runtime to 11.1.3452.0 and SQL Server 2008 R2 to SP2. 我已将Report Viewer 2012 Runtime升级到11.1.3452.0,将SQL Server 2008 R2升级到SP2。

I am using Windows Server 2008 R2 and .NET framework 4.5.1 on the server. 我在服务器上使用Windows Server 2008 R2和.NET framework 4.5.1。 IIS is version 7. IIS是版本7。

I can see print buttons in all previous versions of IE (10,9,8,....) 我可以在IE的所有先前版本中看到打印按钮(10,9,8,....)

I've also tried forcing the user agent to IE10 using this line: meta http-equiv="X-UA-Compatible" content="IE=10" 我也尝试使用这一行强制用户代理到IE10:meta http-equiv =“X-UA-Compatible”content =“IE = 10”

According to the answers to the above question, I should have the print button. 根据上述问题的答案,我应该有打印按钮。 Any other suggestions besides compatibility mode or creating my own print button? 除兼容模式或创建自己的打印按钮之外的任何其他建议?

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. ReportViewer客户端打印功能依赖于除IE 9(或更早版本)以外的任何浏览器都不支持的ActiveX ,这就是在涉及Chrome,Firefox或IE10 / 11浏览器时没有获得打印按钮的原因。 For printing, you should export to PDF and let the user to print it. 对于打印,您应该导出为PDF并让用户进行打印。

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

IE needs an add-on, RSClient , for the print button to work. IE需要一个附加组件RSClient才能使打印按钮正常工作。 Normally, the first time a user loads a report on IE, you'll see a prompt to download and install the add-on. 通常,用户第一次在IE上加载报告时,您会看到下载并安装加载项的提示。 Unfortunately, a lot of things can interfere with this. 不幸的是,很多事情都会干扰这一点。 I'm not sure this will help you, but security settings were an issue for us. 我不确定这会对您有所帮助,但安全设置对我们来说是一个问题。

Try this: 尝试这个:

  1. Remove the RSClientPrint add-on if it's installed. 如果已安装,请删除RSClientPrint插件。 (Open the Control Panel, Internet Properties. Click the Programs tab and Manage Add-Ons .) (打开“控制面板”,“Internet属性”。单击“ 程序”选项卡和“ 管理加载项” 。)
  2. Click the Security tab, select the Trusted Sites zone, and then click the Sites button. 单击“ 安全”选项卡,选择“ 受信任的站点”区域,然后单击“ 站点”按钮。
  3. Add your web site to the zone and save your changes. 将您的网站添加到区域并保存更改。

Open IE and navigate to your web site and the report. 打开IE并导航到您的网站和报告。 Hopefully, you'll see the prompt to download and install RSClientPrint and everything will work well. 希望您能看到下载和安装RSClientPrint的提示,一切都会顺利进行。 If it doesn't try to download, I would focus on the server. 如果它不尝试下载,我会专注于服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM