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

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

    if you add another table to the xsd form after adding the report to the report viewer you might get this error.

    1. delete to report viewer and add it again
    2. set the report to the report viewer
    3. now go to the Load event of the form (that includes the report viewer and add the Fill for new dataset.

      private void rptForm_Load(object sender, EventArgs e) {
        this.vwrpt_TableAdapter1.Fill(this.DataSet1.vwDataset);
      }
      

提交回复
热议问题