Image in MEMO field

Post Reply
User avatar
mauri.menabue
Posts: 165
Joined: Thu Apr 17, 2008 2:38 pm

Image in MEMO field

Post by mauri.menabue »

Hi All
how do you copy an image into a memo field?
As was done in the wwonders file in the examples folder of fwh. The program to view that file is xbrimag1.exe
Thank you
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Image in MEMO field

Post by nageswaragunupudi »

From what source do you want to copy?

If from file,

Code: Select all | Expand

FIELD->IMAGEFIELD := MEMOREAD( "name.jpg" )
If you want to copy an image from some external source (like a webpage), xbrowse makes it simple.

While defining the xbrowse, set oBrw:lCanPaste := .t.
Keep your cursor on the image column of your xbrowse.
Go to external source like a webpage and copy any image.
Come back to xbrowse and press Ctrl+V on the cell.
The image is copied to the memofield.

Using the xbrimag1.prg itself, you can copy images from web or other sources and press ctrl+V to paste the image in the memofield.
Regards

G. N. Rao.
Hyderabad, India
Post Reply