简体   繁体   English

Visual Studio 2015 - Report Viewer 2015可再发行 - 使报表查看器“12”正常工作

[英]Visual Studio 2015 - Report Viewer 2015 redistributable - Getting Report Viewer “12” working

I'm running SQL 2014 , and some users are having problems with the Report Viewer 11 control (Redistributable 2012), so I want to give the " Report Viewer 12 " new control ( Report Viewer Redistributable 2015 ) a spin. 我正在运行SQL 2014 ,并且一些用户在使用Report Viewer 11控件(Redistributable 2012)时遇到问题,所以我想给“ Report Viewer 12 ”新控件( Report Viewer Redistributable 2015 )一个旋转。 But this doesn't seem to be working from the steps I've tried so far, and as of the time I'm writing this there seems limited information on the newer control, and just information of workarounds for the old one. 但是,这似乎并没有从我到目前为止所尝试的步骤开始工作,而且当我写这篇文章时,似乎有关新控件的信息有限,而且只是旧信息的变通方法的信息。

Anyone get this new one working? 有人得到这个新的工作吗? Steps to Reproduce? 重现步骤?

I'm looking into the solution, and it appears adding the feature via the installer (SQL Data tools) should help. 我正在研究解决方案,似乎通过安装程序(SQL数据工具)添加功能应该有所帮助。 But I'm surprised there is not Nuget Package or etc. And such little documentation covering the new version. 但我很惊讶没有Nuget Package等等。而且这些小文档涵盖了新版本。 Too Bleeding edge? 太流血了?

Update: I installed SQL Data Tools via 2015 installer (modified installation and choose new feature). 更新:我通过2015安装程序安装了SQL数据工具(修改了安装并选择了新功能)。 But now I'm jumping a couple more hurdles. 但现在我又跳了几个障碍。

Ok, so I did get this working... 好的,所以我确实让这个工作......

  1. I modified the VS 2015 installation to add SQL Data Tools 我修改了VS 2015安装以添加SQL数据工具
  2. I uninstalled the Nuget Package for 11, because we want 12 我卸载了Nuget Package for 11,因为我们想要12
  3. I added a reference to Microsoft.Reporting.Web (12) which was an option thanks to step 1 我添加了对Microsoft.Reporting.Web(12)的引用,这是一个选项,这要归功于第1步
  4. I updated any left over references in my Web.config from version 11 to version 12 我将Web.config中的任何遗留引用从版本11更新到版本12
  5. I created a new fresh form.aspx 我创建了一个新的form.aspx
  6. I added a script manager 我添加了一个脚本管理器
  7. Via the design view I dragged a 12 report viewer control onto my page 通过设计视图,我将12个报表查看器控件拖到我的页面上
  8. I configured the report viewer as I regularly would 我定期配置报表查看器

    asp:ScriptManager ID="ScriptManager1" runat="server">/asp:ScriptManager> asp:ScriptManager ID =“ScriptManager1”runat =“server”> / asp:ScriptManager>

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

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