General failure in response to DAT_IMAGENATIVEXFER
General failure in response to DAT_IMAGENATIVEXFER
Problems running on Visual FoxPro. I'm trying to run the VFP sample code, and I get this error:
General failure in response to DAT_IMAGENATIVEXFER. Bad protocol error.
... followed by
Transfer Fail. TWRC_FAILURE [no details available]
What's going on? Can you fix it? I really would like to use GdTwain in this app.
General failure in response to DAT_IMAGENATIVEXFER. Bad protocol error.
... followed by
Transfer Fail. TWRC_FAILURE [no details available]
What's going on? Can you fix it? I really would like to use GdTwain in this app.
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 ?
PS: Please, use the last edition of GdTwain OCX.
If you are using the PRO edition you need to replace this lines:
by this one
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
Code: Select all
oTwain = CREATEOBJECT("gdtwainpro.twain")
with oTwainpro as gdtwain.twain
Who is online
Users browsing this forum: No registered users and 1 guest