Solved

Duplex scanning with EZTWAIN

Posted on 2004-04-22
1
1,109 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
SoftEng007 earned 500 total points
ID: 10892307
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

623 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