PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Israel Vega Alvarez on May 26, 2013, 07:26:08 PM

Title: How get content of a FireImage Control
Post by: Israel Vega Alvarez on May 26, 2013, 07:26:08 PM
I need save a record with CHEETAH2 database  memo field  (type Z). 
I am using a FireImage Control.  How I can get the content of image?

Title: Re: How get content of a FireImage Control
Post by: Israel Vega Alvarez on May 26, 2013, 11:47:56 PM
If I open a bmp file or any image this is working fine:

buf_image&=freefile
Open "image.bmp" For Binary As #buf_image&
content_image$=Space$(Lof(buf_image&))
Get #buf_image&,1,content_image$
Close #buf_image&

SendMessage HWND_INICIO_FIREIMAGE1, %FIREIMAGE_SETIMAGENORMAL, %FIREIMAGE_LOADSTRING, VarPtr(content_image$)
SendMessage HWND_INICIO_FIREIMAGE1,  %FIREIMAGE_SETFITSTYLE,0, %TRUE


But I not know how extract the content from a FireImage control to a String...only from a image file to FireImage control.

Please if anyone can tell me how.