public void AddJDBLogo(int x_position, int y_position) { string physicalPath = AttachmentController.ApplicationPath(); string imageDirectoryPath = physicalPath + @"\_assets\img\imgInApp\"; BrokerHouseInformation bhi = BrokerHouseInformation.GetInformation(); string imagePath = imageDirectoryPath + bhi.BrokerHouseLogoRelativeUrl; Image image = Image.GetInstance(imagePath); image.SetAbsolutePosition(x_position, y_position); doc.Add(image); }
public void AddJDBLogoForFactures(int x_position, int y_position) { string physicalPath = AttachmentController.ApplicationPath(); string imageDirectoryPath = physicalPath + @"\_assets\img\imgInApp\"; string fileName = @"euromak_td.png"; //BrokerHouseInformation bhi = BrokerHouseInformation.GetInformation(); string imagePath = imageDirectoryPath + fileName; Image image = Image.GetInstance(System.Drawing.Image.FromFile(imagePath), System.Drawing.Imaging.ImageFormat.Png); image.ScaleToFit(220f, 138f); image.SetAbsolutePosition(x_position, y_position); doc.Add(image); }