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

后端 未结 10 1354
孤独总比滥情好
孤独总比滥情好 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:58

    I bumped into this problem while using version 10 of the ReportViewer while using Visual Studio.Net 2012 to edit code.

    I found a solution by taking the name of the Data Source in the error message (in the case above, it's "Product_Detail"). I then went into source code view, found the ReportViewer, its DataSources, and then inside its ReportDataSource.

    I set the Name property of the ReportDataSource to the same as the Data Source mentioned in the error message (ie "Product_Detail").

    I hope this works for you as it did for me.

    Also, if you have the latitude to use a later version of the ReportViewer control, you may find that this problem either doesn't appear or is easier to solve.

提交回复
热议问题