SSRS ReportViewer : Unable to load client print control

本文提供了解决SQL Server Reporting Services (SSRS) 中打印报告时遇到的问题的方法。针对使用C#编写的ASP.Net应用程序中报告查看器控件无法正常工作的情况,提供了包括更新组件版本、重新注册控件及修改注册表等解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

找了几天终于通过下面的文章解决了(下载sp)。。。没空翻译,大家将就将就

 

 

From time to time I post fixes that I have found that aren’t on the net.  It’s so others don’t have to go through the same aggravation as myself.  This one relates to SQL Server Reporting Services (SSRS).  More precisely we have an ASP.Net application written in C# that uses the report viewer control to show reports.  However, when you want to print the report you need to run an ActiveX print control.  If you remove this from Internet Explorer, IE can’t load it any more.

FIRST CHECK TO MAKE SURE THESE 2 UPDATES ARE INSTALLED

Microsoft Report Viewer Redistributable 2005 Service Pack 1
Microsoft Report Viewer Redistributable 2008 Service Pack 1

You must restart IIS after installing these.  There are older versions available so make certain you have Service Pack 1 editions.

If you are still having the issue, try the following fixes.

Fix #1 - Simplest

We are running the 3.5 Framework.  I’m not certain that was a prerequisite though.  We simply change the version of the component from 8 to version 9.  Open all your ASPX pages and replace

Register Assembly=”Microsoft.ReportViewer.WebForms, Version=8.0.0.0

  with

Register Assembly=”Microsoft.ReportViewer.WebForms, Version=9.0.0.0

Fix #2 - This fix simply got the 8.0 version of the control to re-download.

Part 1
Add you site to the trusted sites.

I ran the following parts as well.  Each consists of a few steps.  I’m not sure if Part 2 was needed.

Part 2
—————————————————————————————————–
Step 1:
Paste the following text in a text editor such as Notepad. Then, save the file by using the .reg file name extension. You can apply this .reg file to client system by double-clicking it.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Internet Explorer/ActiveX Compatibility/{FA91DF8D-53AB-455D-AB20-F2F023E498D3}]
“Compatibility Flags”=dword:00000400

Step 2:
On the client systems which face the issue, this could be tested out -
1. Unregister RSClientPrint.dll
2. Open Internet Explorer
3. Got to Tool - > Internet Options.
4. Click on ‘Programs’ tab
5. Click on ‘Manage add-ons’.
6. Select and Delete the ‘RSClientPrint Class’ ActiveX Control if it exists
7. Select ‘Security’ tab.
8. Select ‘Intranet Zone’ and click on ‘Custom Level’
9. Enable ‘Automatic prompting for ActiveX controls’
10. Select ‘Prompt’ for ‘Download signed ActiveXcontrols’ and ‘Run ActiveX
controls and plug-ins’
11. Restart the Internet Explorer
12. Try to print the report, this time it should prompt you to run the ActiveX
controls and plug-ins.
13. Click ‘Yes’

Part 3
—————————————————————————————————–
Step 1:
Paste the following text in a text editor such as Notepad. Then, save the file by using the .reg file name extension. You can apply this .reg file to client system by double-clicking it.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Internet Explorer/ActiveX Compatibility/{FA91DF8D-53AB-455D-AB20-F2F023E498D3}]
“Compatibility Flags”=dword:00000400
[HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Internet Explorer/ActiveX Compatibility/{FA91DF8D-53AB-455D-AB20-F2F023E498D3}]
“Compatibility Flags”=dword:00000400

Step 2:
On the client systems which face the issue, this could be tested out -
1. Unregister RSClientPrint.dll
2. Open Internet Explorer
3. Got to Tool - > Internet Options.
4. Click on ‘Programs’ tab
5. Click on ‘Manage add-ons’.
6. Select and Delete the ‘RSClientPrint Class’ ActiveX Control if it exists
7. Select ‘Security’ tab.
8. Select ‘Intranet Zone’ and click on ‘Custom Level’
9. Enable ‘Automatic prompting for ActiveX controls’
10. Select ‘Prompt’ for ‘Download signed ActiveXcontrols’ and ‘Run ActiveX
controls and plug-ins’
11. Restart the Internet Explorer
12. Try to print the report, this time it should prompt you to run the ActiveX
controls and plug-ins.
13. Click ‘Yes’

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值