In my win forms C# app, I am exporting my images to pdf and word. Before export, images need to be saved as bitmap. Did it like this:
// code
bitmap.Save("Image.jpeg", ImageFormat.Jpeg);
bitmap.Dispose();
Now the code for word and pdf export read this file normally from saved location. Howewer, while I was testing my desktop app, code "Image.jpeg"
saves image to bin directory.
When I made installer using InstallShield and installed my program, this option works but it save my image to desktop. I don't really want that.
Managed to send it to ApplicationData directory but don't want that either...
string imageSaved = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Image.jpeg");
bitmap.Save(imageSaved, ImageFormat.Jpeg);
bitmap.Dispose();
How to navigate my file to installation directory?