Number of image to transfer. Xfers = -1 means all images.





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainSetXferCount Method

TwainSetXferCount Method (GdPictureImaging)

In This Topic
Negotiates with open Source the number of images application will accept.
Syntax
'Declaration
 
Public Function TwainSetXferCount( _
   ByVal Xfers As Integer _
) As Boolean
public bool TwainSetXferCount( 
   int Xfers
)
public function TwainSetXferCount( 
    Xfers: Integer
): Boolean; 
public function TwainSetXferCount( 
   Xfers : int
) : boolean;
public: bool TwainSetXferCount( 
   int Xfers
) 
public:
bool TwainSetXferCount( 
   int Xfers
) 

Parameters

Xfers
Number of image to transfer. Xfers = -1 means all images.

Return Value

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
Before using this method check that the TWAIN state is 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also