Gustavo

Gustavo

  • NA
  • 1.3k
  • 452.6k

How do I: Use ReportViewer reports from a folder.

Mar 29 2010 6:35 AM

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();
 

Answers (2)