reporting控件无法显示在form上
我遇到的问题出在“引用”上
*引用的添加很重要,否则后续会出现问题,如程序集清单与引用不一致等。
在“引用”里保证要有下面几个dll:
1.Microsoft.ReportViewer.WinForms.dll 2.Microsoft.ReportViewer.Common.dll //这两个一般都有
3.Microsoft.ReportViewer.DataVisualization.dll 4.Microsoft.ReportViewer.Design.dll 5.Microsoft.ReportViewer.ProcessingObjectModel.dll //添加这三个ddl后显示成功
我的第四个ddl的路径:
C:\Users\Administrator\source\repos\Reporting\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1404.0\lib\net40
我的第三、第五个dll路径:
D:\Software\vs2019community\MSBuild\Current\Bin //此路径应该是报表设计器工具的安装位置,文末附报表设计器百度云链接
添加前:
添加后:
报表设计器工具百度云链接:
链接:https://pan.baidu.com/s/1Bvpd-VhLh_YMCDJJP31CNg
提取码:z1wn