mariabenita
Programmer
Good Day!
Is there any way to to send image or picture into Excel Sheet using VFP.
This is the sample of my codes.
tmpsheet = GetObject('','excel.sheet')
XLApp = tmpsheet.application
XLApp.Visible = .t.
XLApp.WorkBooks.Add()
XLSheet = XLApp.ActiveSheet
XLSheet.Cells(2,1).Value = "Item No "
XLSheet.Cells(3,1).Value = "Item name "
XLSheet.Cells(4,1).Value = "Picture "
XLSheet.Cells(2,2).Value = item.itemno
XLSheet.Cells(3,2).Value = item.itemname
**I'll try to use the following commands but the picture doesn't load.
**item.pix contains the filename of the picture
XLSheet.Cells(3,3).Picture = item.pix
** I also try to use this command
XLSheet.Oleobjects = item.pix
Is there any way to to send image or picture into Excel Sheet using VFP.
This is the sample of my codes.
tmpsheet = GetObject('','excel.sheet')
XLApp = tmpsheet.application
XLApp.Visible = .t.
XLApp.WorkBooks.Add()
XLSheet = XLApp.ActiveSheet
XLSheet.Cells(2,1).Value = "Item No "
XLSheet.Cells(3,1).Value = "Item name "
XLSheet.Cells(4,1).Value = "Picture "
XLSheet.Cells(2,2).Value = item.itemno
XLSheet.Cells(3,2).Value = item.itemname
**I'll try to use the following commands but the picture doesn't load.
**item.pix contains the filename of the picture
XLSheet.Cells(3,3).Picture = item.pix
** I also try to use this command
XLSheet.Oleobjects = item.pix