Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How to add a Rdlc Report file to .Resx Resource file ?

$
0
0

I have a small project in VS2010.In that project I have one resource file called MyResources.resx. Now Iam using this MyResources.resx file to store the images required in my project. Also I have one report called REPORT1.rdlc. My Intention is to add that report file to that MyResources.resx resource file. Is it possible to access the report from that resouce file ?

From the below example, I stored Thatha.jpg image file in MyResources.resx. and accessed.

ResourceManager^ rm = gcnew ResourceManager("NewTest_EmbedRpt.MyResources", GetType()->Assembly);
pictureBox1->Image = safe_cast<Image^>(rm->GetObject("Thatha"));

Same way is it possible to store that Report1.rdlc in resources and can access?
Any codes and ideas will be very helpful.

Note: In c#  BuidAction property is available to set the Report1.rdlc as EmbeddedResource. 

Thanks for the guidances.


U.PARANTHAMAN


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>