日期:2014-05-17  浏览次数:20534 次

在以下方法或属性之间的调用不明确:“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);