Hello:
I have put my reports written in ReportViewer in the root directory of the project and all is well.
However, if I put them in their own folder in the project, the can not be run. I am using the following lines of code. What do I have to change to get the report from the "Report" folder?
ReportString = "ICEPack." + ReportName + ".rdlc";
reportViewerReport.LocalReport.ReportEmbeddedResource = ReportString;
this.reportViewerReport.RefreshReport();
How do I: Use ReportViewer reports from a folder.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hirendra SisodiyaRank #258 · 9.8K reputationPosted Mar 29, 2010, 3:58 AM EDT
suppose that you have 'Report' folder in your application than you can use this line of code for showing reports from report folder:
ReportString = "ICEPack.Report" + ReportName + ".rdlc";
reportViewerReport.LocalReport.ReportEmbeddedResource = ReportString;
this.reportViewerReport.RefreshReport();
thanks
Please mark as answere if it helps
GustavoRank #1,990 · 732 reputationPosted Mar 29, 2010, 4:13 AM EDT
Yes, it worked... Thanks.