簡體   English   中英

活動設計器中未啟用 ReportViewer 控件。 - 視覺工作室 2017

[英]ReportViewer control are not enabled in the active designer. - Visual Studio 2017

我正在嘗試在 MVC 應用程序上使用 RDLC 報告查看器,但我無法使用它。

我為 Visual Studio 安裝了 Microsoft Rdlc Report Designer 擴展,之后我還從 Nuget 包管理器控制台安裝了這個包 Microsoft.ReportingServices.ReportViewerControl.WebForms。

然后我嘗試選擇要添加到工具箱的包,我收到以下消息:

在此處輸入圖片說明

按 OK 按鈕后,ReportViewer 在工具箱中仍然不可見。 我也遵循了這些說明,但仍然無法正常工作Visual Studio 2017 RC 中缺少 Reportviewer 工具

對於Visual Studio 2019 -->

01:進入擴展菜單

02 :管理擴展--> 搜索“Microsoft RDLC 報告設計器”

03 : 下載並安裝“Microsoft RDLC Report Designer”

  • 創建asp.net空web項目
  • Report.aspxReport.rdlc文件添加到項目中。

04:轉到參考文件夾 -->管理 nuget 包

05:搜索Microsoft.ReportingServices.ReportViewerControl.WebForms並安裝

到目前為止,工具箱下還沒有名為“ Microsoft Sql Server ”的選項卡。 我們應該這樣做才能打開它。

04:打開Report.rdlc文件

05:之后打開Report.aspx文件

06:現在你可以看到在工具箱下有一個名為Microsoft Sql Server的選項卡

07:您可以在Microsoft Sql Server選項卡中找到Reportviewer

08:將ReportViewer控件拖到Report.aspx

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM