A data source instance has not been supplied for the data source“Product_Detail” in Microsoft reporting service

后端 未结 10 1352
孤独总比滥情好
孤独总比滥情好 2021-02-07 03:19

I`m trying to display record in a Report. Data is in the Dataset. but it is not binind to them. When forms load it shows it report layout. But when i click on the button it show

10条回答
  •  星月不相逢
    2021-02-07 03:57

    "ProductsDataSet" is the name of the DataSource you are giving it. Your Error is saying "A data source instance has not been supplied for the data source“Product_Detail” in Microsoft reporting service"

    I'm assuming you're assigning it the wrong name.

    Try,

    ReportDataSource rds = new ReportDataSource("Product_Detail", ds.Tables[0]);
    

    If you do have a datasource in the report called "ProductsDataSet" then you probably have 2, in which you'd wanna delete the one you aren't using or assign it a datasource as well.

提交回复
热议问题