当前位置: 代码迷 >> ASP.NET >> 在以下方法或属性之间的调用不明确:“Microsoft.Reporting.WebForms.ReportDataSource.ReportData解决办法
  详细解决方案

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

热度:7137   发布时间:2013-02-25 00:00:00.0
在以下方法或属性之间的调用不明确:“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);
  相关解决方案