I have the following situation:
I have a Solution that is named MySolution, inside this solution there is some projects including a project named PdfReport. Inside this project there is a folder named Shared and inside this folder there is an header.jpg image.
Now I am trying to retrieve this file and I have found this code on the official documentation (http://msdn.microsoft.com/en-us/library/aa287676%28v=vs.71%29.aspx):
System.Reflection.Assembly thisExe;
thisExe = System.Reflection.Assembly.GetExecutingAssembly();
System.IO.Stream file =
thisExe.GetManifestResourceStream("AssemblyName.ImageFile.jpg");
this.pictureBox1.Image = Image.FromStream(file);
On the documentation say that:
Replace "AssemblyName.ImageFile.jpg" with the name of the resource, as it is known in the assembly.
I am finding some difficulties to understand what I have to insert in my specific case as input paramether for the GetManifestResourceStream() method.
Can you help me to retrive my file?
Tnx