Hi,
Your acquisition device seems to doesn't support the native transfer mode.
Could you run this vfp code and report here what are the message box you can see ?
- Code: Select all
oTwain = CREATEOBJECT("gdtwain.twain")
with oTwain as gdtwain.twain
&&Open the source
IF .TwainOpenDefaultSource()
&&Set the source parameters
.TwainSetDebugMode(.T.)
.TwainSetHideUI(.T.)
.TwainSetCurrentPixelType(2) &&Color
&&Acquire & Save
nImageID = .TwainAcquireToImageID
.SaveAsJpeg("c:\image.jpg")
&&Close the source
.TwainCloseSource
ELSE
MESSAGEBOX("Can't open default source")
ENDIF
endwith
PS: Please, use the last edition of GdTwain OCX.
If you are using the PRO edition you need to replace this lines:
- Code: Select all
oTwain = CREATEOBJECT("gdtwain.twain")
with oTwain as gdtwain.twain
by this one
- Code: Select all
oTwain = CREATEOBJECT("gdtwainpro.twain")
with oTwainpro as gdtwain.twain