Whenever we encountered by this error in rdlc, it simply means that we are assigning whole dataset to ReportDatasource.
ReportDataSource rds = new ReportDataSource("MinQtyItem_sp_MinQtyItem", ds);
To overcome this issue just tell ReportDataSource which table of DataSet She/He has to load.
ReportDataSource rds = new ReportDataSource("MinQtyItem_sp_MinQtyItem", ds.Tables[0]);
ReportDataSource rds = new ReportDataSource("MinQtyItem_sp_MinQtyItem", ds);
To overcome this issue just tell ReportDataSource which table of DataSet She/He has to load.
ReportDataSource rds = new ReportDataSource("MinQtyItem_sp_MinQtyItem", ds.Tables[0]);
No comments:
Post a Comment