>>>Dear All,
>>>
>>>Is there any way to to extract picture from excel file and save it to file on disc.
>>
>>Export as html, then it will export all the images as cryptic named jpgs - and if you got only one, you're lucky ;). The images will be in a subdirectory yourfilename_files.
>
>I need it done programmatically. Perhaps this could be done but I need to know which picture is which.
It can, I did that once. Just record the macro. You could also do a workaround (programmagically) - copy the image to clipboard, create a new sheet, save that sheet as html - take the image from there. It will be there twice, once as a thumbnail, so take the larger one ;).
>Excel can send picture clipboard, so I was thinking if picture can be somehow retrieved from there and saved to disc.
>
>BTW Can ms paint be OLE automated from VFP ? I goggled out some VB chat where somebod did solution like this
>with ms paint.
You should also be able to use a GDI+ library (Carlos, Cezar... download) to save bitmap from clipboard to disk.