I'm getting “The report definition for report 'xxxx.rdlc' has not been specified” in my RDLC report

前端 未结 6 1817
野的像风
野的像风 2020-12-02 02:23

I\'ve created an rdlc report. I have a reportViewer on my form. When I try to load the report I get : \"The report definition for report \'xxxx.rdlc\' has not been specifie

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 02:55

    I had this same issue occur with one of my reports. It was a local, embedded report.

    1. I didn't have the ReportEmbeddedResource property set.
    2. When I did set ReportEmbeddedResource property, it still gave the error because the report name had incorrect case - myApp.reports.rptMyJobstatus.rdlc instead of myApp.reports.rptMyJobStatus.rdlc.

    Therefore, you need to check both of these conditions.

提交回复
热议问题