TwainSetAutoScan Method

See Also     Examples     Applies To

Tries to enable or disable the autoscan capability. Setting this to TRUE gives the scanner permission to 'scan ahead'.
i.e. to pull pages from the feeder and scan them before they have been requested.
On high-speed scanners, you may have to enable AutoScan to achieve the maximum scanning rate.

Syntax

object.TwainSetAutoScan (bAutoScan)

The TwainSetAutoScan syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
bAutoScan Required. Boolean. True to enable autoscan, else False.

Returns

Boolean. TRUE if successful, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.

Remarks

This call will fail on most flatbeds & cameras, and some 'feeder'
Before using this function check that the TWAIN state is TWAIN_SOURCE_OPEN (4)
To get the TWAIN state, use the TwainGetState() function.

Category

TWAIN Functions





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.