当前位置: 首页 > 工具软件 > RDLC > 使用案例 >

VS2019添加RDLC

孟鹤龄
2023-12-01

版权声明:本文为CSDN博主「两苹果」的原创文章 
原文链接:https://blog.csdn.net/liangpingguo/article/details/98173192

--------------------------------------------------------------------------------------------------

默认没有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就被顺利添加到你的工具箱里了!(注意WinFroms与WebForms)
————————————————

RDLC 报表设计器

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

2.新增:在项目->添加新项的弹出窗口中,Visual C# 项中,选择 "報表" 或者 "報表精靈",选报表即可编辑报表
3.报表数据源的显示:按快捷键 Ctrl+Alt+D 打开   或者 从工具栏的【视图】中【报表资料】打开

4.报表无法显示报表控件时:

RDLC-报表数据源工具栏不显示
删除以下目录
C:\Users\用户帐号\AppData\Local\Microsoft\VisualStudio\16.0_ae570635
文件:
Toolbox.tbd
toolBoxIndex.tbd

 类似资料: