Twain, Disabling Duplex Functionality

Discussions about image processing and document imaging.
Post Reply
draywydor
Posts: 1
Joined: Wed May 30, 2007 5:17 pm
Location: Wyoming

Twain, Disabling Duplex Functionality

Post by draywydor » Wed May 30, 2007 5:22 pm

I have downloaded a trial version of the GdPciture OCX (version 3.4). I am using an HP Scanjet 8200 series scanner with ADF. I am having trouble turning off the duplex functionality using VBA or VB. I have set the oGdPicture.TwainEnableDuplex method to false, but it still returns True. The only way I have been able to change the duplex setting on my scanner is by flipping the physical switch on my scanner (the TwainIsEnabledDuplex still returns true).

Has anyone experienced a similar problem? Any suggestions would be helpful. I am trying to automate some scanning processes and regularly need to switch back and forth between duplex and no duplex.

Thanks.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Wed May 30, 2007 11:00 pm

Hi,

You are right. It is a small bug ::bug:: of the TwainIsEnabledDuplex method.

You can bypass it with the last version using the Low Level API with this code:

https://gdpicture.com/references/gdpictu ... meric.html
https://gdpicture.com/references/gdpictu ... ities.html

Code: Select all

Dim nDuplexMode As Long

oGdPicture.TwainGetCapCurrentNumeric(CAP_DUPLEXENABLED, nDuplexMode)

If nDuplexMode = 1 then Msgbox "Enabled"
If nDuplexMode = 0 then Msgbox "Disabled"

Best regards,

Loïc Carrère

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests