读书人

在以下方法或属性之间的调用不明确:“

发布时间: 2012-06-06 16:44:11 作者: rapoo

在以下方法或属性之间的调用不明确:“Microsoft.Reporting.WebForms.ReportDataSource.ReportData

C# code
在以下方法或属性之间的调用不明确:“Microsoft.Reporting.WebForms.ReportDataSource.ReportDataSource(string, System.Data.DataTable)”和“Microsoft.Reporting.WebForms.ReportDataSource.ReportDataSource(string, System.Collections.IEnumerable)”    D:\OA\Application\CoReport.aspx.cs    


[解决办法]
你调用这个over load方法的第二个参数可以转换为DataTable,也实现了IEnumerable
编译器不知道用哪个.
简单的改可以用强转
ReportDataSource(str,(DataTable)dt);

读书人网 >asp.net

热点推荐