Spiga

Loading *.rdlc stored outside the assembly

I am back with the ReportViewer control shipped in .NET 2.0
What is the problem again? well it not much I just want to share about how I can load the *.rdlc file stored outside the Assembly.


Okay, let say my application have the following structure:

App [Folder]
- App.exe
+ Reports [Folder]
- Report1.rdlc
By store the report seperate from the App.exe it allow me to make change to the report without having to recompile my app.

To load the report file:
string stRDLCFileName = "Report1.rdlc";
this.reportViewer1.LocalReport.ReportPath = "Reports\\" + stRDLCFileName;
this.reportViewer1.RefreshReport();
Until then it all for now ;)