worksheet.Pictures.Add("Penguins.jpg", PositioningMode.MoveAndSize, new AnchorCell(worksheet.Columns[0], worksheet.Rows[0], true), new AnchorCell(worksheet.Columns[10], worksheet.Rows[10], false));
How to Pass First Parameter which is image path Dynamically oR relative path in first parameter
Application.ActiveWorkbook.Path
String sFile = "MyPicture.jpg"; String sPath = Application.StartupPath + "\\Images\\" + sFile; worksheet.Pictures.Add(sPath + , PositioningMode.MoveAndSize, new AnchorCell(worksheet.Columns[0], worksheet.Rows[0], true), new AnchorCell(worksheet.Columns[10], worksheet.Rows[10], false));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)