GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetPaperSize Method
A member of the TwainPaperSize enumeration.





In This Topic
TwainSetPaperSize Method (GdPictureImaging)
In This Topic
Sets the current paper size.
Syntax
'Declaration
 
Public Function TwainSetPaperSize( _
   ByVal Size As TwainPaperSize _
) As Boolean
public bool TwainSetPaperSize( 
   TwainPaperSize Size
)
public function TwainSetPaperSize( 
    Size: TwainPaperSize
): Boolean; 
public function TwainSetPaperSize( 
   Size : TwainPaperSize
) : boolean;
public: bool TwainSetPaperSize( 
   TwainPaperSize Size
) 
public:
bool TwainSetPaperSize( 
   TwainPaperSize Size
) 

Parameters

Size
A member of the TwainPaperSize enumeration.

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. NONE (0) indicates that the maximum image size supported by the device is to be used.
See Also