ExcelApplication - Add image

Hi,
Am looking to add image into excel, I already gothrough the examples but nothing work for me.
Can anyone advice me on this?

Hi,
I have converted from excel macros, this is works for me, you can have a try to find out.

excel.ActiveSheet.Range("C2").select_
excel.ActiveSheet.Pictures.Insert("c:\test\tpc_logo.png").Select_
excel.Columns("C:C").ColumnWidth = (excel.ActiveSheet.Shapes("Picture 1").Width/25.52)
excel.Rows("2:2").RowHeight = (excel.ActiveSheet.Shapes("Picture 1").Height*1)

thanks
arief

1 Like