I've created a billing app that creates a pdf. My issue is the pdf doesn't get created because the header for the pdf isn't being fond, i get a "could not find part of the path c#". I've tried changing the location of the folder and also including it in the bin folder.
var imagepath = @System.Reflection.Assembly.GetExecutingAssembly()
.Location + @"\..\..resources\pdfHeader.png";
using (FileStream fs = new FileStream(imagepath, FileMode.Open))
{
var png = Image.GetInstance(System.Drawing.Image.FromStream(fs), ImageFormat.Png);
png.ScalePercent(25f);
png.SetAbsolutePosition(pdfDoc.PageSize.Width - 559f - 2f , pdfDoc.PageSize.Height - 2f - 115f);
pdfDoc.Add(png);
}