DTWAIN_EnableFeeder

Top  Previous  Next

The DTWAIN_EnableFeeder function determines whether the document feeder will be used to acquire images.

 

DTWAIN_BOOL DTWAIN_EnableFeeder (

DTWAIN_SOURCE

Source

DTWAIN_BOOL

bEnable );

         

Parameters

Source

An open TWAIN Source.

 

bEnable

Determines whether to use the document feeder.

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_EnableFeeder function determines whether to use the document feeder when acquiring images. If bEnable is TRUE, the document feeder is used to acquire images.  If bEnable is FALSE, the alternate method is used (usually the alternate method is the flatbed portion of a scanning device).  If DTWAIN_EnableFeeder is not called, the document feeder will be used.  Note that this function will always return FALSE if the device does not have a document feeder.

 

This function is useful if you have a scanning device that uses both a flatbed and document feeder, and your application wants to choose one over the other.  By default, enabling the document feeder will always allow the pages to be fed automatically.  To turn of the automatic feeding of the pages, call DTWAIN_EnableAutoFeed(Source, FALSE).

 

TWAIN State Transitions

The Source must be in State 4 or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

DTWAIN Source Selection Function

 

 

See Also

Automatic Document Feeder Support