"The type or namespace Reporting does not exist"在WinForms项目中



类型或命名空间报告在windows窗体中的命名空间microsoft中不存在。当我点击错误时,将显示以下代码

'''公共Microsoft.Reporting.WinForms.ReportViewer reportViewer1;'''

您可以右键单击解决方案资源管理器中的引用,然后从程序集中的扩展中添加Microsoft.ReportViewer引用。

参考资料>添加引用>程序集>扩展>Microsoft.ReportViewer

希望它能起作用。

最新更新