1.新建wpf项目,并引入3个程序集: Microsoft.ReportViewer.WinForms WindowsFormsIntegration System.Windows.Forms 如果无法搜索到,可能是VS没有安装相关组件,请如图添加: 2.新建Entities文件夹,在其中添加Entities.cs文件,其中创建两个实体类,Department和Employee class Department { public int DepartmentId { get; set; } pu
找回报表控件 运行安装程序中的 ..\packages\Reporting Services\RVAddon.msi 工具栏,右键选择ReportViewer,注意选择的版本 如果不能编辑报表文件(.rdlc),继续.打开vs安装程序,修改->勾选 Microsoft SQL Server Data Tools ,安装 如果是win10,发现报表里中文全乱码了,把所有中文改成“宋体”(其他中文字体也行)吧.