Previous topic Next topic
HBPRINTER GET COMMANDS
Help > Libraries > HBPRINTER >

/////////////////////////////////////////////////////////////////////
// HBPRINTER GET COMMANDS
/////////////////////////////////////////////////////////////////////

GET DEFAULT PRINTER TO <cPrinterName>
Stores the name of the default printer into the specified variable.

GET SELECTED PRINTER TO <cPrinter>
Stores the name of the selected printer into the specified variable.

GET PAPERS TO <aPapers>
Stores the available papers for current printer into the specified array.

GET BINS TO <aBins>
Stores the available bins for current printer into the specified array.

GET PRINTERS TO <aPrinters>
Stores the available printers into the specified array.

GET PORTS TO <aPorts>
Stores the available ports into the specified array.

GET BACKCOLOR [ TO ] <nColor>
Stores current background color into the specified variable.

GET TEXTCOLOR [ TO ] <nVar>
Stores the current textcolor into the specified variable.

HBPRNMAXROW
Returns the current greatest row available.

HBPRNMAXCOL
Returns the current greatest column available.

HBPRNERROR
Returns the current error code.