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





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainGetAvailableImprinterModeNo Method

TwainGetAvailableImprinterModeNo Method (GdPictureImaging)

In This Topic
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