Duplex Options Example for Visual Basic

Dim RasterTwain As New LEADRasterTwain_U

RasterTwain.InitSession hWnd
RasterTwain.SelectSource

Dim bEnableDuplex As Boolean
Dim nDuplexMode As Integer
Dim nMaxXfer As Integer

bEnableDuplex = RasterTwain.EnableDuplex
nDuplexMode = RasterTwain.DuplexMode
nMaxXfer = RasterTwain.MaxXferCount

If bEnableDuplex = False Then
	RasterTwain.EnableDuplex = True
End If

If nMaxXfer <> 10 Then RasterTwain.MaxXferCount = 10