TwainOpenSource Method

See Also     Examples     Applies To

Opens the source with the given name.
If another source is open, closes it and attempts to open the specified source.
First call this method for each scanning process or to set the TWAIN state to 4 (TWAIN_SOURCE_OPEN) when the TWAIN state is 3 (TWAIN_SM_OPEN) or 2 (TWAIN_SM_LOADED) or 1 (TWAIN_PRESESSION).

Syntax

object.TwainOpenSource (sSourceName)

The TwainOpenSource syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
sSourceName Required. String. The name of the source to open.

Returns

Boolean. True if success else False.

Remarks

If this call returns TRUE, TWAIN is in STATE 4 (TWAIN_SOURCE_OPEN).

Category

TWAIN Capability





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.