GdPicture.NET Reference Guide
TwainGetAvailableImprinterModeNo Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : TwainGetAvailableImprinterModeNo Method
Index of the available printer mode. Must be a value between 1 and TwainGetAvailableImprinterModeCount() returned value.
Returns an available printer mode which can be used by the opened source in its current configuration.
Syntax
'Declaration
 
Public Function TwainGetAvailableImprinterModeNo( _
   ByVal Number As Integer _
) As TwainPrinterMode
public TwainPrinterMode TwainGetAvailableImprinterModeNo( 
   int Number
)
public function TwainGetAvailableImprinterModeNo( 
    Number: Integer
): TwainPrinterMode; 
public function TwainGetAvailableImprinterModeNo( 
   Number : int
) : TwainPrinterMode;
public: TwainPrinterMode TwainGetAvailableImprinterModeNo( 
   int Number
) 
public:
TwainPrinterMode TwainGetAvailableImprinterModeNo( 
   int Number
) 

Parameters

Number
Index of the available printer mode. Must be a value between 1 and TwainGetAvailableImprinterModeCount() returned value.

Return Value

If fail, returns -1 else if success, The selected file format value. A member of the TwainPrinterModes enumeration.
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

Reference

GdPictureImaging Class
GdPictureImaging Members
TwainEnableImprinter Method
TwainGetAvailableImprinterModeCount Method
TwainIsImprinterAvailable Method
TwainIsImprinterEnabled Method
TwainGetImprinterMode Method
TwainSetImprinterMode Method
TwainGetImprinterString Method
TwainSetImprinterString Method
TwainGetImprinterSuffix Method
TwainSetImprinterSuffix Method
TwainSetImprinterIndex Method
TwainGetImprinterIndex Method
TwainGetLastPrintedString Method