[英]ReportViewer control are not enabled in the active designer. - Visual Studio 2017
I am trying to use the RDLC Report Viewer on a MVC application but I can't use it.我正在尝试在 MVC 应用程序上使用 RDLC 报告查看器,但我无法使用它。
I installed the extension Microsoft Rdlc Report Designer for Visual Studio, after doing that I also installed this package Microsoft.ReportingServices.ReportViewerControl.WebForms from the Nuget Package Manager Console.我为 Visual Studio 安装了 Microsoft Rdlc Report Designer 扩展,之后我还从 Nuget 包管理器控制台安装了这个包 Microsoft.ReportingServices.ReportViewerControl.WebForms。
Then I tried to choose that package for adding to the Toolbox and I get this message:然后我尝试选择要添加到工具箱的包,我收到以下消息:
After pressing the OK button the ReportViewer is still not visible in the Toolbox.按 OK 按钮后,ReportViewer 在工具箱中仍然不可见。 I followed these instructions too but still doesn't work Reportviewer tool missing in visual studio 2017 RC
我也遵循了这些说明,但仍然无法正常工作Visual Studio 2017 RC 中缺少 Reportviewer 工具
For Visual Studio 2019 -->对于Visual Studio 2019 -->
01 : Go to Extensions Menu 01:进入扩展菜单
02 : Manage extensions --> Search "Microsoft RDLC Report Designer" 02 :管理扩展--> 搜索“Microsoft RDLC 报告设计器”
03 : Download and install "Microsoft RDLC Report Designer" 03 : 下载并安装“Microsoft RDLC Report Designer”
04: Go to Reference folder --> Manage nuget packages 04:转到参考文件夹 -->管理 nuget 包
05: Search Microsoft.ReportingServices.ReportViewerControl.WebForms and Install 05:搜索Microsoft.ReportingServices.ReportViewerControl.WebForms并安装
So far there is not tab called " Microsoft Sql Server " under toolbox.到目前为止,工具箱下还没有名为“ Microsoft Sql Server ”的选项卡。 we should do this way for open it.
我们应该这样做才能打开它。
04: Open Report.rdlc file 04:打开Report.rdlc文件
05: After that open Report.aspx file 05:之后打开Report.aspx文件
06: Now you can see there is a tab called as Microsoft Sql Server under toolbox 06:现在你可以看到在工具箱下有一个名为Microsoft Sql Server的选项卡
07: you can find Reportviewer inside Microsoft Sql Server tab 07:您可以在Microsoft Sql Server选项卡中找到Reportviewer
08: Drag ReportViewer control to Report.aspx 08:将ReportViewer控件拖到Report.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.