Scan ahead feature on 9080C

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
mp33487
Posts: 54
Joined: Wed May 06, 2009 4:26 am

Scan ahead feature on 9080C

Post by mp33487 » Tue Dec 08, 2009 5:37 am

We're scanning with a 9080C scanner and having an issue with the scan ahead feature. When we try and set it in code (when we use the ADF, see below) it doesn't seem to work. When we bring up the UI and manually select the option it does speed up the scanner greatly. Is there an issue with this scanner with this feature? We need this running faster to meet our production numbers. Thanks

Code: Select all

Private Function IsScannerReady(ByRef oScan As GdPicture.GdPictureImaging) As Boolean
Dim i As Integer

'set dpi
oScan.TwainSetResolution(intDPI)

'set UI
If blnHideUI = True Then
oScan.TwainSetHideUI(True)
Else
oScan.TwainSetHideUI(False)
End If

'set bitonal/color and make sure scanner supports color if selected
If strBitonalColor = "B" Then
'bitonal
oScan.TwainSetPixelType(TwainPixelType.TWPT_BW)
oScan.TwainSetBitDepth(1)
Else
'color
oScan.TwainSetPixelType(TwainPixelType.TWPT_RGB)
oScan.TwainSetBitDepth(8)
End If

'set auto brightness
oScan.TwainSetAutoBrightness(True)

'set duplex
If strSimplexDuplex = "D" Then
oScan.TwainEnableDuplex(True)
Else
'default to simplex
oScan.TwainEnableDuplex(False)
End If

'Set ADF
If blnADF = True Then
oScan.TwainSetAutoFeed(True)
oScan.TwainSetAutoScan(True)
Else
oScan.TwainSetAutoFeed(False)
End If

oScan.TwainSetAutoSize(True)

Return True

Exit Function

CatchError:

Return False

End Function

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

Re: Scan ahead feature on 9080C

Post by Loïc » Tue Dec 08, 2009 9:47 am

Hi,

In your function I can't find any place where you open a TWAIN source. Maybe it is the cause of your trouble.

Please, try the TWAIN sample provided with your GdPicture Toolkit. It includes a sample to scan pages using this feature. You will be able to check quickly if your scanner has a problem or not.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest