Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TwainSetAutoFeed Method
True to enable automatic document feeding, else False.





In This Topic
    TwainSetAutoFeed Method (GdPictureImaging)
    In This Topic
    Try to enable or disable the Source’s automatic document feeding process. If you enable auto feed scanning, this method selects the feeder. So to start scanning pages from an ADF, just do: TwainSetAutoFeed(TRUE).
    Syntax
    'Declaration
     
    
    Public Function TwainSetAutoFeed( _
       ByVal AutoFeed As Boolean _
    ) As Boolean
    public bool TwainSetAutoFeed( 
       bool AutoFeed
    )
    public function TwainSetAutoFeed( 
        AutoFeed: Boolean
    ): Boolean; 
    public function TwainSetAutoFeed( 
       AutoFeed : boolean
    ) : boolean;
    public: bool TwainSetAutoFeed( 
       bool AutoFeed
    ) 
    public:
    bool TwainSetAutoFeed( 
       bool AutoFeed
    ) 

    Parameters

    AutoFeed
    True to enable automatic document feeding, else False.

    Return Value

    TRUE if successful, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
    Remarks
    This method can returns FALSE with HP scanners with ADF. Before using this method check that the TWAIN state is TWAIN_SOURCE_OPEN (4) To get the TWAIN state, use the TwainGetState() method.
    See Also