GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetImprinterMode Method
Printer mode. A member of the TwainPrinterMode enumeration.





In This Topic
TwainSetImprinterMode Method (GdPictureImaging)
In This Topic
Sets the current imprinter mode, if supported. Top/Bottom refer to duplex devices, and indicate if the printer is writing on the top or the bottom of the sheet of paper. Simplex devices use the top settings. Before/After indicates whether printing occurs before or after the sheet of paper has been scanned.
Syntax
'Declaration
 
Public Function TwainSetImprinterMode( _
   ByVal PrinterMode As TwainPrinterMode _
) As Boolean
public bool TwainSetImprinterMode( 
   TwainPrinterMode PrinterMode
)
public function TwainSetImprinterMode( 
    PrinterMode: TwainPrinterMode
): Boolean; 
public function TwainSetImprinterMode( 
   PrinterMode : TwainPrinterMode
) : boolean;
public: bool TwainSetImprinterMode( 
   TwainPrinterMode PrinterMode
) 
public:
bool TwainSetImprinterMode( 
   TwainPrinterMode PrinterMode
) 

Parameters

PrinterMode
Printer mode. A member of the TwainPrinterMode 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.
See Also