SELECT PRINTER
  

DESCRIPTION

Select a Printer.

SYNTAX

SELECT PRINTER <cPrinter> | DEFAULT
[ TO <
lSuccessVar> ]
[ ORIENTATION <
nOrientation> ]
[ PAPERSIZE <
nPaperSize> ]
[ PAPERLENGTH <
nPaperLength> ]
[ PAPERWIDTH <
nPaperWidth> ]
[ COPIES <
nCopies> ]
[ DEFAULTSOURCE <
nDefaultSource> ]
[ QUALITY <
nQuality> ]
[ COLOR <
nColor> ]
[ DUPLEX <
nDuplex> ]
[ COLLATE <
nCollate> ]
[ PREVIEW ]

SELECT PRINTER DIALOG
[ TO <
lSuccessVar> ]
[ PREVIEW ]

SELECT PRINTER HTML <cBaseFileName>


DESCRIPTION:

ORIENTATION - Specifies page orientation:

PRINTER_ORIENT_PORTRAIT
PRINTER_ORIENT_LANDSCAPE


PAPERSIZE - Specifies paper size:

PRINTER_PAPER_LETTER
Letter, 8 1/2- by 11-inches
PRINTER_PAPER_LEGAL
Legal, 8 1/2- by 14-inches .
PRINTER_PAPER_A4
A4 Sheet, 210- by 297-millimeters
PRINTER_PAPER_CSHEET
C Sheet, 17- by 22-inches
PRINTER_PAPER_DSHEET
D Sheet, 22- by 34-inches
PRINTER_PAPER_ESHEET
E Sheet, 34- by 44-inches
PRINTER_PAPER_LETTERSMALL
Letter Small, 8 1/2- by 11-inches
PRINTER_PAPER_TABLOID
Tabloid, 11- by 17-inches
PRINTER_PAPER_LEDGER
Ledger, 17- by 11-inches
PRINTER_PAPER_STATEMENT
Statement, 5 1/2- by 8 1/2-inches
PRINTER_PAPER_EXECUTIVE
Executive, 7 1/4- by 10 1/2-inches
PRINTER_PAPER_A3
A3 sheet, 297- by 420-millimeters
PRINTER_PAPER_A4SMALL
A4 small sheet, 210- by 297-millimeters
PRINTER_PAPER_A5
A5 sheet, 148- by 210-millimeters
PRINTER_PAPER_B4
B4 sheet, 250- by 354-millimeters
PRINTER_PAPER_B5
B5 sheet, 182- by 257-millimeter paper
PRINTER_PAPER_FOLIO
Folio, 8 1/2- by 13-inch paper
PRINTER_PAPER_QUARTO
Quarto, 215- by 275-millimeter paper
PRINTER_PAPER_10X14
10- by 14-inch sheet
PRINTER_PAPER_11X17
11- by 17-inch sheet
PRINTER_PAPER_NOTE
Note, 8 1/2- by 11-inches
PRINTER_PAPER_ENV_9 #9
Envelope, 3 7/8- by 8 7/8-inches
PRINTER_PAPER_ENV_10 #10
Envelope, 4 1/8- by 9 1/2-inches
PRINTER_PAPER_ENV_11 #11
Envelope, 4 1/2- by 10 3/8-inches
PRINTER_PAPER_ENV_12 #12
Envelope, 4 3/4- by 11-inches
PRINTER_PAPER_ENV_14 #14
Envelope, 5- by 11 1/2-inches
PRINTER_PAPER_ENV_DL
DL Envelope, 110- by 220-millimeters
PRINTER_PAPER_ENV_C5
C5 Envelope, 162- by 229-millimeters
PRINTER_PAPER_ENV_C3
C3 Envelope, 324- by 458-millimeters
PRINTER_PAPER_ENV_C4
C4 Envelope, 229- by 324-millimeters
PRINTER_PAPER_ENV_C6
C6 Envelope, 114- by 162-millimeters
PRINTER_PAPER_ENV_C65
C65 Envelope, 114- by 229-millimeters
PRINTER_PAPER_ENV_B4
B4 Envelope, 250- by 353-millimeters
PRINTER_PAPER_ENV_B5
B5 Envelope, 176- by 250-millimeters
PRINTER_PAPER_ENV_B6
B6 Envelope, 176- by 125-millimeters
PRINTER_PAPER_ENV_ITALY
Italy Envelope, 110- by 230-millimeters
PRINTER_PAPER_ENV_MONARCH
Monarch Envelope, 3 7/8- by 7 1/2-inches
PRINTER_PAPER_ENV_PERSONAL
6 3/4 Envelope, 3 5/8- by 6 1/2-inches
PRINTER_PAPER_FANFOLD_US
US Std Fanfold, 14 7/8- by 11-inches
PRINTER_PAPER_FANFOLD_STD_GERMAN
German Std Fanfold, 8 1/2- by 12-inches
PRINTER_PAPER_FANFOLD_LGL_GERMAN
German Legal Fanfold, 8 1/2- by 13-inches
PRINTER_PAPER_USER
User defined size paper


PAPERLENGTH / PAPERWIDTH - Sets a custom paper length/width (millimeters).

To use custom paper size, you mus specify PRINTER_PAPER_USER as paper size.

COPIES - Set the number of copies to print.

This setting is ignored unless the printer driver indicates support for multiple-page copies.

DEFAULTSOURCE - Specifies the paper source:

PRINTER_BIN_ONLYONE
PRINTER_BIN_LOWER
PRINTER_BIN_center
PRINTER_BIN_MANUAL
PRINTER_BIN_ENVELOPE
PRINTER_BIN_ENVMANUAL
PRINTER_BIN_AUTO
PRINTER_BIN_TRACTOR
PRINTER_BIN_SMALLFMT
PRINTER_BIN_LARGEFMT
PRINTER_BIN_LARGECAPACITY
PRINTER_BIN_CASSETTE
PRINTER_BIN_FORMSOURCE

QUALITY - Specifies the printer resolution:

PRINTER_RES_HIGH
PRINTER_RES_MEDIUM
PRINTER_RES_LOW
PRINTER_RES_DRAFT

COLOR - Switches between color and monochrome on color printers:

PRINTER_COLOR_COLOR
PRINTER_COLOR_MONOCHROME

DUPLEX - Selects duplex or double-sided printing:

PRINTER_DUP_SIMPLEX
PRINTER_DUP_HORIZONTAL
PRINTER_DUP_VERTICAL

This setting is ignored unless the printer driver indicates support for duplex printing.

COLLATE - Specifies whether collation should be used:

PRINTER_COLLATE_TRUE
PRINTER_COLLATE_FALSE

This setting is ignored unless the printer driver indicates support for collation.

PREVIEW - When specified, a print preview window is shown at print job end.

When selected printer driver copies setting is greater than 1, or collate is enabled, you'll not be able to change "copies" and "collate" values from preview's print dialog.

Active shortcuts during preview:

HOME:
First Page.
PRIOR:
Previous Page.
NEXT:
Next page.
END:
Last Page.
CONTROL+P:
Open Print Dialog.
CONTROL+G:
Open Go To Page Dialog.
MULTIPLY:
Zoom In / Out.
ESCAPE / CONTROL+C ALT+F4:
Close Preview.
CONTROL+S:
Save Pages As '.emf'' Files.
CONTROL+T:
Show / Hide Thumbnails Window.

Alternatively, you can click a thumnbail to change the active page.

HTML PRINTER: - When output is directed to HTML files, please consider:

@...PRINT RECTANGLE:
ROUNDED clause of @...PRINT command is ignored.
@...PRINT LINE:
Only horizontal lines are allowed.

Font size is converted according the following table:
From 01 To 08 -> 08
From 09 To 10 -> 10
From 11 To 12 -> 12
From 13 To 14 -> 14
From 15 To 18 -> 18
From 19 To 24 -> 24
From 25 To 36 -> 36