Solved

Duplex scanning with EZTWAIN

Posted on 2004-04-22
1
1,072 Views
Last Modified: 2007-12-19
Hi,
               I am trying to do duplex scanning with EZTWAIN. No luck so far.
               Hope to get some help.

Thank You,
-Alex




Option Explicit

Dim intCompletionCode As Integer
   
Private Sub Command1_Click()
   TWAIN_SetHideUI (1)  ' request no UI
   If (TWAIN_GetDuplexSupport() = 0) Then
       MsgBox (" nO DUPLEX")
       End
   Else
       TWAIN_SelectFeeder (1)
       TWAIN_EnableDuplex (1)
   End If
   
   intCompletionCode = TWAIN_AcquireToFilename(0, "C:\Scanning\Yes.tif")
   Select Case intCompletionCode:
      Case 0
         MsgBox (" Success !!! ")
      Case -1
         MsgBox ("The Acquire failed")
      Case -2
         MsgBox ("File Open Error (Invalid path or name, or access denied)")
      Case -3
         MsgBox ("Invalid DIB, or image incompatible with file format, or ...")
      Case -4
         MsgBox ("Writing Failed, possibly output device is full.")
      Case -10
         MsgBox ("User cancelled File Save Dialog")
      Case Else
         MsgBox ("Unknown Error: " & intCompletionCode)
   End Select
   If (TWAIN_UnloadSourceManager() <> 0) Then
       MsgBox ("eRROR")
   End If
End Sub

Private Sub Form_Load()
   If (TWAIN_OpenSource("FUJITSU fi-4120Cdj") <> 1) Then
       MsgBox ("Could not Open Scanner, Exiting ... ")
       End
   End If
End Sub

0
Comment
Question by:AlexF777
1 Comment
 
LVL 9

Accepted Solution

by:
SoftEng007 earned 500 total points
Comment Utility
Alex,
here is a link to the author of EZTWain.
it contains a sample for duplex scanning.

http://www.dosadi.com/ezt3duplex.htm
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now