Visual Studio 2019 报表RDLC设计器与工具箱中Report Viewer问题

  • Post author:
  • Post category:其他


默认没有ReportDesigner/ReportViewer


ReportViewer:

1.在 Nuget 下载:

Microsoft.ReportingServices.ReportViewerControl.Winforms

Microsoft.ReportingServices.ReportViewerControl.Webforms

https://docs.microsoft.com/zh-cn/sql/reporting-services/application-integration/integrating-reporting-services-using-reportviewer-controls-get-started

2.工具箱中点右键,选择“选择项”,在.net framework组建选项卡中选择“浏览”,然后在你的工程根目录下的“\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1358.0\lib\net40”目录下

选择“Microsoft.ReportViewer.WinForms.dll”文件

或者 在“\packages\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1358.0”目录下

选择“Microsoft.ReportViewer.WebForms.dll”文件

,然后report viewer就被顺利添加到你的工具箱里了!



RDLC 报表设计器

1. 点击Tools(工具) -> Extensions and Updates…(扩展和更新) ->联机 搜索 rdlc,结果中找到Microsoft Rdlc Report Designer for Visual Studio后进行安装(根据提示,应该是要关闭VS2017后再自动安装)。

2.在项目->添加新项的弹出窗口中,Visual C# 项中,选择 “報表” 或者 “報表精靈”,如下图,选报表即可编辑报表



版权声明:本文为liangpingguo原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。