你错过了使用指令或程序集引用吗? [英] are you missing a using directive or an assembly reference?

查看:84
本文介绍了你错过了使用指令或程序集引用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

'Microsoft.Reporting.WinForms.ReportViewer'不包含'ReportSource'的定义,也没有扩展方法'ReportSource'接受类型'Microsoft.Reporting.WinFord'的第一个参数(你是否缺少using指令或程序集引用?

解决方案

首先检查WinFord不应该是WinForm或WinForms。

然后如果问题仍然存在,将光标放在单词ReportSource上并将鼠标悬停在它上面。开头会出现一条蓝色的小线。用鼠标打开该线的下拉线,它可以选择解决问题。



如果没有显示该行,请检查它们是否适当的程序集(microsoft.reportviewer.winforms.dll中的Microsoft.ReportViewer.WinForms)列在项目引用中 - 如果它不是,则添加它T

'Microsoft.Reporting.WinForms.ReportViewer' does not contain a definition for 'ReportSource' and no extension method 'ReportSource' accepting a first argument of type 'Microsoft.Reporting.WinFord (are you missing a using directive or an assembly reference?

解决方案

First check that "WinFord" should not be "WinForm" or "WinForms".
Then if the problem persists, put your cursor in the word ReportSource and hover the mouse over it. A small blue line should appear at the beginning. Use the mouse to open the drop down from this line and it will have options to cure the problem.

If the line does not appear, check that they appropriate assembly (Microsoft.ReportViewer.WinForms in microsoft.reportviewer.winforms.dll) is listed under the Project References - add it if it isn't.


这篇关于你错过了使用指令或程序集引用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆