AttachPicture
Attach a picture, from an image file, to a worksheet cell.
BOOL AttachPicture( int nRow, int nCol, LPCSTR lpcszFileName, DWORD dwEmbedInfo = 0 )
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
EX1
//Attach a picture, from an image file, to a worksheet cell. void Worksheet_AttachPicture_Ex1() { Worksheet wks = Project.ActiveLayer(); if(!wks) return; string strImage = GetOpenBox("*.bmp"); if(strImage.IsEmpty()) //user canceled return; wks.AttachPicture(0, 0, strImage); }
origin.h