Need help about GDTwain
Posted: Fri Sep 21, 2012 8:58 am
Hello, Loïc
I need your suggest about GDTwain.
I have 2 simple applications.
Application#1 use for select twain source and select profile of selected source
- Select twain source
Imaging1.TwainSelectSource (Me.hwnd)
- Select profile of selected source
If Imaging1.TwainOpenDefaultSource() Then
Imaging1.TwainSetHideUI (False)
nImageID = Imaging1.TwainAcquireToGdPictureImage(Me.hwnd)
Else
MsgBox "can't open default source, twain state is: " & Trim(Str(Imaging1.TwainGetState))
End If
Application#2 use only acquire
If Imaging1.TwainOpenDefaultSource() Then
Imaging1.TwainSetHideUI (False)
nImageID = Imaging1.TwainAcquireToGdPictureImage(Me.hwnd)
Call GdViewer1.SetNativeImage(Imaging1.GetNativeImage)
Call Imaging1.SaveAsPDF(App.Path & "\acquire.pdf")
Else
MsgBox "can't open default source, twain state is: " & Trim(Str(Imaging1.TwainGetState))
End If
I use all applications with Scanner Plustek SmartOffice PS286, its seem not work because scanner always scan in "Front Side Scan" mode
Although I set profile of scanner to "Duplex Scan" mode.
I use vb6 to develope.
Sorry if my english make you confuse.
Regards
Wittaya WAC
I need your suggest about GDTwain.
I have 2 simple applications.
Application#1 use for select twain source and select profile of selected source
- Select twain source
Imaging1.TwainSelectSource (Me.hwnd)
- Select profile of selected source
If Imaging1.TwainOpenDefaultSource() Then
Imaging1.TwainSetHideUI (False)
nImageID = Imaging1.TwainAcquireToGdPictureImage(Me.hwnd)
Else
MsgBox "can't open default source, twain state is: " & Trim(Str(Imaging1.TwainGetState))
End If
Application#2 use only acquire
If Imaging1.TwainOpenDefaultSource() Then
Imaging1.TwainSetHideUI (False)
nImageID = Imaging1.TwainAcquireToGdPictureImage(Me.hwnd)
Call GdViewer1.SetNativeImage(Imaging1.GetNativeImage)
Call Imaging1.SaveAsPDF(App.Path & "\acquire.pdf")
Else
MsgBox "can't open default source, twain state is: " & Trim(Str(Imaging1.TwainGetState))
End If
I use all applications with Scanner Plustek SmartOffice PS286, its seem not work because scanner always scan in "Front Side Scan" mode
Although I set profile of scanner to "Duplex Scan" mode.
I use vb6 to develope.
Sorry if my english make you confuse.
Regards
Wittaya WAC