Loading...

Threshold and PaperSize not work.

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

Threshold and PaperSize not work.

Postby ikary » Mon Jun 23, 2008 10:04 am

Hi,
I tried to set threshold and paper size with method "TwainSetCurrentThreshold(0~255)" and "TwainSetPaperSize(A4~B4)" after calling "TwainOpenDefaultSource()", but both of them are not changed.
Is there any other method should I call to make them work?
ikary
 
Posts: 3
Joined: Mon Oct 15, 2007 11:39 am

Re: Threshold and PaperSize not work.

Postby ikary » Wed Jun 25, 2008 1:57 pm

After I update the scanner driver, TwainSetCurrentThreshold() does work now.
I tried to call TwainGetAvailablePaperSize and it return 16, but I got false returned by calling TwainSetPaperSize().
ikary
 
Posts: 3
Joined: Mon Oct 15, 2007 11:39 am

Re: Threshold and PaperSize not work.

Postby Loïc » Fri Jun 27, 2008 5:27 pm

Hi,

Check you are using supported paper size by your TWAIN device:

Code: Select all
For nCpt = 1 To Imaging1.TwainGetAvailablePaperSizeCount
    MsgBox "Supported :" + Str(Imaging1.TwainGetAvailablePaperSizeNo(nCpt))
Next nCpt



For the threshold, this feature can be not supported by your device.
Check the returned value of the TwainSetCurrentThreshold() method. If the return is False this mean that the Threshold capability is not supported.

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: Google [Bot] and 1 guest

cron