Image in MEMO field

Image in MEMO field

Postby mauri.menabue » Tue May 30, 2023 5:55 pm

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
mauri.menabue
 
Posts: 155
Joined: Thu Apr 17, 2008 2:38 pm

Re: Image in MEMO field

Postby nageswaragunupudi » Tue May 30, 2023 7:01 pm

From what source do you want to copy?

If from file,
Code: Select all  Expand view
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
User avatar
nageswaragunupudi
 
Posts: 10468
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Jimmy and 77 guests