TwainSelectSource Method

See Also     Examples     Applies To

Select twain device for capture. This method posts the Source Manager's Select Source dialog box.

Syntax

object.TwainSelectSource (hwnd)

The TwainSelectSource syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
hwnd Optional. Long. Default value is 0. A Win32 Window Handle. In most applications you can use 0 but on Citrix and WTS, this must be a top-level window or a child of a top level window.

Returns

Boolean. True if success else False.
False indicates:
1- The user cancelled the dialog.
2- The Source Manager found no data sources installed.
3- There was a failure before the Select Source dialog could be posted.

Category

TWAIN Capability





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.