3

我正在使用 Visual Studio 2012 开发 MVC 应用程序。我在我的项目中添加了一个 ascx 页面来放置报表查看器。当我从页面的工具箱中拖放 ReportViewer 组件时,它没有正确显示 ReportViewer 并在其上显示此错误:

Failed to create designer 'Microsoft.Reporting.WebForms.ReportViewer, Microsoft.Reporting.WebForms version 10.0.0.0, Culture=natural, PublicKeyToken=b03f5f7f11d50a3a'

我还在项目引用中添加了 Microsoft.ReportViewer.WebForms 程序集。Visual Studio 2012 中的reportviewer 有什么问题吗?提前感谢任何帮助。

4

3 回答 3

7

SOLVED!

  1. I downloaded and installed Report Viewer 2010 version.
  2. Then I added Microsoft.ReportViewer.WebForms.DLL assembly file from C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91.
  3. And finally I added the following line to the .ascx file. <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
于 2013-04-17T10:51:24.960 回答
1

请参阅解决方案探索和探索参考链接并删除 ReportViewer Forms 和 WindowReportViewer 然后简单地从工具箱中添加报表查看器,它对我有用

于 2017-04-13T20:02:05.927 回答
0

我希望这对某人有所帮助,因为我找到了解决此问题的非常简单的方法...

这里 下载 Reportviewer v11。

然后从工具箱中右键单击general...单击Choose Items 并从.NET Framework 组件中浏览C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\11.0.0.0__89845dcd8080cc91

这会将 ReportViewer 添加到您的工具箱中!

于 2017-04-12T19:11:28.177 回答