DTWAIN_SetPrinter

Top  Previous  Next

The DTWAIN_SetPrinter function sets the current Imprinter/Endorser.

 

DTWAIN_BOOL DTWAIN_SetPrinter (

DTWAIN_SOURCE

Source,

LONG

Printer,

DTWAIN_BOOL

bSetCurrent );

 

Parameters

Source

An open TWAIN Source.

 

Printer

The Imprinter or Endorser to set.

 

bSetCurrent

Determines whether to set the current printer or use the default printer.

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_SetPrinter function sets the current imprinter/endorser for the Source Source.  The Printer is the printer to set.  If bSetCurrent is TRUE, the printer defined by Printer is set to the current printer.  If bSetCurrent is FALSE, the default imprinter or endorser is set to the current printer, and the Printer argument is ignored.  To turn on or off the current selected printer use DTWAIN_EnablePrinter.  The value of Printer can be any one of the Imprinter / Endorser constants:

 

TWAIN State Transitions

The Source must be in State 4. or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Imprinter / Endorser Support