如果上述方法仍然不能将报表查看器控件添加到工具箱,请尝试将dll直接拖动到工具箱:
1,打开Windows资源管理器并导航到DLL
2,将DLL拖放到工具箱中的Visual Studio上,确切地将其显示在组件中
{解决方案目录}这意味着工作项目文件夹C:\ Users \ xxxx \ xxxx \ repos \ WindowsApp4例如,该项目位置意味着进入以下路径:C:\ Users \ xxxx \ xxxx \ repos \ WindowsApp4 \ packages C:\ Users \ xxxx \ xxxx \ repos \ WindowsApp4 \ packages \ Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80 C:\ Users \ xxxx \ xxxx \ repos \ WindowsApp4 \ packages \ Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80 \ lib C:\ Users \ xxxx \ xxxx \ repos \ WindowsApp4 \ packages \ Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80 \ lib \ net40此文件夹下的是dll。
Microsoft.ReportViewer.WinForms.dll
将上述dll拖放到工具箱中
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句