Loading...

Strange behaviour with ADF (gdtwain v410 / 411beta)

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

Strange behaviour with ADF (gdtwain v410 / 411beta)

Postby Slava » Sat Apr 05, 2008 3:34 pm

Hi Loic,

I have problems selecting feeder using gdtwain, so i try to set flatbed and scan. If there are documents in ADF, it scans from ADF anyway, if not, the following accur:

<image removed>

Warning message from HP scansoftware (i translate):
'Original documents are removed form ADF. Please place the documents and press New Scan. If you want to scan from Flatbed, there must be no documents in the ADF. Close HP-scansoftware and start the program again.'

and then warning msg from GDTWAIN:

<image removed>

my set-scanner-settings log, just before scan:
TwainHasFeeder returns 'false'
TwainSelectFeeder(xxx) returns 'false'
TwainSetAutoFeed(True) returns 'false'
TwainSetAutoFeed(False) returns 'true'
TwainIsFeederSelected retruns 'true'!!! :roll:

Debug Mode ON:
> GdTwain Debug Start. Version 410
> Start: OpenSource; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 3
> Start: SetXferMech.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> End: SetXferMech.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> End: OpenSource.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> Start: SetAutoFeed.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> CAP_FEEDERENABLED. Result for Set True.; RC: TWRC_FAILURE; CC: TWCC_SUCCESS; State 4
> CAP_AUTOFEED. Result for Set True.; RC: TWRC_FAILURE; CC: TWCC_CAPBADOPERATION (Operation not supported by cap); State 4
> End: SetAutoFeed.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> Start: AcquireNative.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> Start: WaitForNativeXfer.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> Start: SetXferMech.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> End: SetXferMech.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> Start: WaitForXfer.; RC: TWRC_SUCCESS; CC: TWCC_SUCCESS; State 4
> ... a few more messages with success, no scan actions ..

The warning with v411 beta is the same.

The GdTwain 411 beta one time scan debug log can be found here: [URL OUTDATED]

p.s. Sometimes i get from imaging component that black-and-white scan is not available, sometimes it is. Is it a driver issue?

delphi7; win2000SP4; HP Scanjet 5590 scanner (latest driver, i think).

I hope this was helpfully. If you need more specific info, please tell me.
Regards,
Slava
Last edited by Slava on Thu Oct 06, 2011 2:18 am, edited 3 times in total.
Slava
 
Posts: 66
Joined: Fri Jun 22, 2007 4:43 pm

Re: Strange behaviour with ADF (gdtwain v410 / 411beta)

Postby Loïc » Sun Apr 06, 2008 6:02 pm

Hi Slava,

If you want to scan from Flatbed, there must be no documents in the ADF.


For me it's clear, if you want to acquire from Flatbead your scanner needs to don't have any document into the ADF. I can't do anything for that. This is needed by your scanner.


TwainSelectFeeder(xxx) returns 'false'
TwainSetAutoFeed(True) returns 'false'
TwainSetAutoFeed(False) returns 'true'
TwainIsFeederSelected retruns 'true'!!! :roll:


TwainIsFeederSelected() returns True because you selected the feeder here:

Code: Select all
TwainSetAutoFeed(True)


From the reference guide:

This function selects the feeder, so to start scanning pages from an ADF, just do: TWAINSetAutoFeed(TRUE).
[...]This function can returns FALSE with HP scanners with ADF


If you want to select the Flatbed you need to use the TwainSelectFeeder() method:

Code: Select all
TwainSelectFeeder(False)


Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron