繁体   English   中英

在设计模式下在visual studio 2012中使用报表查看器时出错

[英]Error in using report viewer in visual studio 2012 in design mode

我正在使用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程序集添加到项目References中。 Visual Studio 2012中的reportviewer有什么问题吗? 任何帮助都提前感谢。

解决了!

  1. 我下载并安装了Report Viewer 2010版本。
  2. 然后我从C:\\Windows\\assembly\\GAC_MSIL\\Microsoft.ReportViewer.WebForms\\11.0.0.0__89845dcd8080cc91添加了Microsoft.ReportViewer.WebForms.DLL程序集文件。
  3. 最后,我将以下行添加到.ascx文件中。 <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

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

我希望这可以帮助别人,因为我找到了解决这个问题的非常简单的方法......

这里下载Reportviewer的v11。

然后从工具箱中右键单击常规...单击选择项目并从.NET Framework组件C:\\Windows\\assembly\\GAC_MSIL\\Microsoft.ReportViewer.WebForms\\11.0.0.0__89845dcd8080cc91浏览到

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

暂无
暂无

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

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