hello!
is any way replace my image with include reeno or any field data
like i take image from my webcame and it store in one folder after that i use replace command so it save path in my field but when i replace that time image name want to change
here is my code below
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)\PHOTO\.BMP"
* Get the image
lnImageHandle = TWAIN_AcquireNative(0,0)
* 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
clear resources
thisform.image1.picture = m.lcFile
REPLACE TABLE1.IMAGE WITH THISFORM.IMAGE1.Picture