Accusoft.TwainPro9.ActiveX
Quick Start - Acquire a TWAIN Image

Your application needs only two support features for TWAIN compliance:

The two standard methods supplied by TwainPRO™ are SelectSource and StartSession.

SelectSource displays the TWAIN Data Source Manager's User Interface with the default Data Source highlighted. The user selects the Data Source he or she wishes to use then selects the OK or Cancel buttons.

The StartSession method displays the current or default Data Source User Interface for image acquisition. Any capabilities that the user wishes to change will have to be changed through the Data Source User Interface.

VB Example
Copy Code
' This code demonstrates how to select the Data Source UI and then acquire an image from the Data Source
TwainPRO1.SelectSource
TwainPRO1.StartSession

' After the image is acquired you can place it into the windows,
' clipboard then into other applications or controls.
Private Sub TwainPRO1_PostScan()
TwainPRO1.CutToClipboard
Picture1.Picture = Clipboard.GetData(vbCFDIB)
End Sub

 

See Also

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback