TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Tue May 22, 2012 2:54 am




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Use Feeder but no AutoFeed should be used
PostPosted: Mon May 21, 2007 5:43 am 
Offline

Joined: Mon May 21, 2007 5:30 am
Posts: 1
We use Dynamic Twain 4.0 with an HP 5590 scanner.
driver: HP SCANJET 5590 TWAIN

We have to use this driver for access ADF.

But now i have to scan many A4 papers which are in the ADF,but
after scan of one page the onposttransfer event is fired.
that's correct but the scanner scan now the next paper!
But i need it in another way so that i say to the scanner: Please scan now the next paper.

So i have written following code in vb6.


If Me.Twain.SelectSource() Then
If Me.Twain.OpenSource() Then
Me.Twain.IfThrowException = True
Me.Twain.IfFeederEnabled = True ' occur an error
Me.Twain.IfAutoFeed = False ' occur an error

If Me.Twain.IfFeederEnabled Then
MsgBox "always enabled - feeeder enabled"
End If
Me.Twain.TransferMode = 0 ' TWSX_NATIVE
Me.Twain.IfDisableSourceAfterAcquire = True
Me.Twain.IfTiffMultiPage = True
'ME.Twain.MaxImagesInBuffer = 2
Me.Twain.PixelType = 2 'RGB
Me.Twain.JPEGQuality = 85
Me.Twain.Resolution = 150
Me.Twain.BitDepth = 24
Me.Twain.IfShowUI = False
If Me.Twain.IfAutoFeed Then
MsgBox "always true - Autofeed"
Me.Twain.IfAutoFeed = False 'occur an error
End If
MsgBox Me.Twain.IfAutoFeed ' always true

If Me.Twain.IfFeederEnabled Then
If Me.Twain.Duplex <> 0 Then
Me.Twain.IfDuplexEnabled = False
End If
If Me.Twain.IfFeederLoaded Then
Me.Twain.XferCount = -1
Me.Twain.IfAutoScan = False
Me.Twain.IfAutoFeed = False 'occur an error
Me.Twain.AcquireImage
End If
End If
End If
Else
MsgBox "not open"
End If
End If


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 10:49 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
The HP scanjet 5590 TWAIN driver automatically sets the value of the IfAutoFeed property to true when the value of the IfFeederEnabled property is true. You can refer to the following pseudocode and let us know if it could resolve your problem.

====================================
Private Sub Twain_OnPostTransfer()
If Users want to scan the next page Then
Continue scanning...
Else
Call the CancelAllPendingTransfers method to cancel all pending transfers.
And then call the CloseSource method.
End If
End Sub
====================================

Thanks.

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

It is currently Tue May 22, 2012 2:54 am


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog