Vs2017使用的是rdlc Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80
版本的,但是NuGet默认安装的是最新版本的也就是rdlc15.0,15.0对应的是最新vs2019。步骤是
1. 选择“工具” >>“ Nuget包管理器” >> “程序包管理器控制台” 
               执行命令:Install-Package Microsoft.ReportingServices.ReportViewerControl.WinForms -Pre
2.      选择“工具” >>“ Nuget包管理器” >> “管理解决方案的NuGet程序包(N)”
               选择Microsoft.ReportingServices.ReportViewerControl.Winforms
               选择你的项目
               卸载150.1358.0
              选择rdlc版本为140.340.80,点击安装
3. 在工具箱中点击右键,选择“选择项” 
4. 在.net framework组建选项卡中选择“浏览” 
5. 在工程根目录下 
“\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80\lib\net40” 
选择“Microsoft.ReportViewer.WinForms.dll”

相关文章:

  • 2021-05-15
  • 2022-12-23
  • 2021-05-18
  • 2021-08-27
  • 2021-09-20
  • 2021-08-24
  • 2021-12-06
猜你喜欢
  • 2021-09-03
  • 2021-05-16
  • 2022-12-23
  • 2021-08-05
  • 2021-10-21
相关资源
相似解决方案