简体   繁体   中英

'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#). I needed to start with something simple and found this Microsoft walk-through : 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

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. i believed <VSProjectName> would return the name of the project. ( how ? it is just a string ! ... )

i fixed the bug but got a more sophisticated one !

will keep you updated.

av

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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