简体   繁体   English

“报告的报告定义” <vsprojectname> VS2013 WPF / C#应用程序中未指定.report1.rdlc&#39;错误

[英]'the report definition for report '<vsprojectname>.report1.rdlc' has not been specified' error in VS2013 WPF/C# application

I want to have reporting feature in my application (Visual Studio 2013, WPF, C#). 我想在我的应用程序中使用报表功能(Visual Studio 2013,WPF,C#)。 I needed to start with something simple and found this Microsoft walk-through : https://msdn.microsoft.com/en-us/library/hh273267.aspx . 我需要从简单的内容开始,并找到以下Microsoft演练: https : //msdn.microsoft.com/en-us/library/hh273267.aspx

I believe I followed all the instructions, but in vain - the only result is the following message in the main window: 我相信我遵循了所有说明,但徒劳无功-唯一的结果是主窗口中出现以下消息:

an error occured during local report processing. 本地报表处理期间发生错误。 the report definition for report '.report1.rdlc' has not been specified 未指定报告“ .report1.rdlc”的报告定义

Could you please consult me? 你能咨询我吗?

Thank you in advance! 先感谢您!

av 影音

please find an update ! 请找到更新!

the reason of the error is in this code line : 错误的原因在以下代码行中:

this._reportViewer.LocalReport.ReportEmbeddedResource = "<VSProjectName>.Report1.rdlc";

this "<VSProjectName>.Report1.rdlc" does not 'point' to a correct report. "<VSProjectName>.Report1.rdlc"没有“指向”正确的报告。 i believed <VSProjectName> would return the name of the project. 我相信<VSProjectName>将返回项目的名称。 ( how ? it is just a string ! ... ) (怎么?只是一个串!...)

i fixed the bug but got a more sophisticated one ! 我修复了该错误,但得到了一个更完善的错误!

will keep you updated. 将使您保持更新。

av 影音

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM