Chorn Sokun's Weblog

Conquer inner fear, push it to the limit!

Loading *.rdlc stored outside the assembly

leave a comment »

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:

By store the report separate from the BillionDollarApp.exe (not embed *.rdlc as an assembly resource) 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;

Until then it all for now ;)

Written by Chorn Sokun

October 17, 2006 at 3:06 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: