private static string img = System.Reflection.Assembly.GetExecutingAssembly().Location;
private static string[] imgs = img.Split(new string[] {"\\ProgramName"},StringSplitOptions.None);
private string img_path = imgs[0] + "\\Resources\\LOGO.jpg";//
The above works when debugging on my pc - once I publish the program(I'm going to give it to my wife to use at work) then the path does not match and the image is lost(I need the absolute path because I am using it in a report -formatted in html via code then pushed to pdf).
I think I literally have one problem line:
private string img_path = System.Windows.Forms.Application.StartupPath + "\\Resources\\" + "LOGO.jpg";
Big thanks if you can help! I've tried to load the image itself, but because I am using the path in html - that option doesnt work for me.