TwainOpenDefaultSource Method

See Also     Examples     Applies To

This opens the source selected in the Select Source dialog.
If some source is already open, does nothing and returns TRUE.
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.TwainOpenDefaultSource ()

The TwainOpenDefaultSource syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.

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.