| This sample will access your scanner and will aquire an image from it. Place to your form two Command Button Controls, Picture Control and copy follow code. Code: Declare Function TWAIN_AcquireToClipboard Lib "EZTW32.DLL" (ByVal hwndApp&, ByVal wPixTypes&) As Long Declare Function TWAIN_SelectImageSource Lib "EZTW32.DLL" (ByVal hwndApp&) As Long 'Select a Image Source Private Sub Command1_Click() Dim ret As Long ret = TWAIN_SelectImageSource(Me.hWnd) End Sub 'Get a Picture Private Sub Command2_Click() Dim ret As Long ret = TWAIN_AcquireToClipboard(Me.hWnd, t%) Picture1.Picture = Clipboard.GetData(vbCFDIB) End Sub |
Access your scanner and will aquire an image |
India web developer web development India | Freelance web development ecommerce web developer | Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design