尚未指定报告“Report1"的报告定义 [英] The report definition for report 'Report1' has not been specified

查看:36
本文介绍了尚未指定报告“Report1"的报告定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 2012 webapplication project.t 中创建了一个 rdlc 报告.所有步骤都正确(所有步骤都从 UI 完成)在我运行项目时没有做任何编码我总是收到以下错误

I created a rdlc report in visual studio 2012 webapplication project.t Did all steps correctly (all are done from the UI's) not do any coding when I run the project I alwasy get following error

An error occurred during local report processing.
    The report definition for report 'Report1' has not been specified
        Object reference not set to an instance of an object.

然后从代码隐藏设置 ReportViewer1.LocalReport.ReportPath= 属性.然后错误 desapier 并正常工作.我的头痛是如何在不进行任何编码的情况下设置此属性?

then set the ReportViewer1.LocalReport.ReportPath= property from the codebehind.then error desapier and working properly.my headache was how to set this property without doing any coding ?

推荐答案

在报表视图中替换此行

<LocalReport ReportEmbeddedResource="report.Report1.rdlc">

到这一行

 <LocalReport Reportpath="Report1.rdlc">

这篇关于尚未指定报告“Report1"的报告定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆