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();
Loading
Hirendra SisodiyaPosted Mar 29, 2010, 7:58 AM
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
GustavoPosted Mar 29, 2010, 8:13 AM
Yes, it worked... Thanks.