2
Answers

How do I: Use ReportViewer reports from a folder.

Ask a question
Gustavo

Gustavo

14y
2.1k
1

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)