hi!
how do i replace image from file
here is my code
DO [C:\Program Files\EZTwain\VFP\EZTwain.prg]
TWAIN_SelectImageSource(0)
* Get list of devices into memory
TWAIN_GetSourceList()
LOCAL lcFile, lnImageHandle, lnReply
lcFile = "C:\Documents and Settings\sony\My Documents\New Folder (2)\IMAGES\IMAGE.jpg"
* Get the image
lnImageHandle = TWAIN_AcquireNative(0,0)
replace image with lcFile
* Write the image to a disk file
lnReply = ;
TWAIN_WriteNativeToFilename(lnImageHandle,lcFile)
* Release the image handle
TWAIN_FreeNative(lnImageHandle)
* Check for errors
IF lnReply = 0
* image successfully written to file
ELSE
* something went wrong
ENDIF
now problem is my image field show me a path (e.g C:\Documents and Settings\sony\My Documents\New Folder (2)\IMAGES\IMAGE.jpg ) but not actual image (when i click on image field)
is it possible to get image insted of path before i click