See Also Examples Applies To
Asks to the opened source to enable or disable the duplex scanning mode.
Syntax
object.TwainEnableDuplex (bDuplex.)
The TwainEnableDuplex syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| bDuplex. | Boolean. Set True to enable duplex mode else False. |
Returns
Boolean. True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.
Remarks
Before using this function check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN).
To get the back of the acquired image, just call another time an acquisition function.
To get the TWAIN state, use the TwainGetState() function.
Category
TWAIN Functions
Visual Basic Sample
Dim nImageSide1 As Long, nImageSide2 As Long
object.TwainSelectSource
object.TwainOpenDefaultSource
If object.TwainEnableDuplex(True) Then
nImageSide1 = object.TwainAcquireToGdPictureImage
nImageSide2 = object.TwainAcquireToGdPictureImage
MsgBox "Handle Image side 1: " & nImageSide1 & ". Handle Image side 2: " & nImageSide2
Else
MsgBox "Duplex Scanning mode is not supported!"
End If
object.TwainCloseSource