Need help about GDTwain

Example requests & Code samples for GdPicture Toolkits.
Post Reply
wittaya
Posts: 23
Joined: Mon Apr 27, 2009 9:11 am

Need help about GDTwain

Post by wittaya » 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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest