.rdlc Report - Cannot create a data reader for dataset 'DataSet1'

后端 未结 11 1563
刺人心
刺人心 2020-12-10 00:31

I have created a .rdlc-Report under VS 2012 using the report wizard and added data source and dataset. When I try to render the report using the code below I get following e

11条回答
  •  眼角桃花
    2020-12-10 01:19

    I also had the same problem. After my observations I identified that, the RDLC reports does need the dataset either it should has some records in it or empty object(empty object will have the meta data)

    So best practice is always return a dataset with empty object (not Null or nothing)or with some records in it.

提交回复
热议问题