What is the best way to insert an image comment to a cell in excel using C#?
I'm using Microsoft.Office.Interop.Excel.
So far I've done
Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook wb = excel.Workbooks.Open(filename);
Microsoft.Office.Interop.Excel.Worksheet sheet = wb.Sheets[1];
var commnetImage = sheet.Shapes.AddPicture(@"d:\download.jpg", Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse,
0, 0, 100, 200);
var gg = sheet.Cells.Range["E5"];
gg.ClearComments();
gg.AddComment(commnetImage);
wb.Save();
excel.Quit();