0

In my project I have a report.rdlc which I would like to use in my Windows Forms class. However, when I try to add a Report Viewer component my visual Form this error pops up:

Error

4

1 回答 1

0

这个解决方案帮助我解决了我的问题

  1. 我下载并安装了 Report Viewer 2010 版本。

  2. 然后我添加了 Microsoft.ReportViewer.WebForms.DLL 程序集文件

  3. C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91. 最后,我将以下行添加到 .ascx 文件中。<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

于 2013-06-12T11:58:49.280 回答