Print Directive List

Updated November 2013 (added SETOPTION)

Directive

Description

Totpages (%#)

Total pages in document

BIN

Specifies paper bin or tray

DUPLEX

Sets DUPLEX options

ELLIPSE

Draws ellipse

ESCAPE

Passes raw ESC codes to printer

IMAGE

Inserts image

LINETO

Draws a line

META

Embeds unspecified meta data

METAFILE

Inserts metafile

MOVETO

Positions cursor

ORIENTATION

Accepts two arguments, LANDSCAPE and PORTRAIT. Overrides the orientation previously set in the printer init file, spooler switches, or default.

PAPERSIZE

Set paper size

PASSTHROUGH

Set printer mode

PDFX

Controls generation of PDF documents

POLYGON

Draws a polygon

RECTANGLE

Draws a rectangle

RESETFONT

Restores original font.

RESETLPP

Resets the current lines-per-page value

SETBKCOLOR

Sets background color

SETBRUSH

Sets line thickness and style for filling

SETFONT

Sets font

SETMAPMODE

Set position for subsequent drawing

SETOPTION

Selectively enables various options affecting GDI printing.

SETPEN

Sets line thickness and style for drawing

SETPENEX

Extended version of SETPEN

SETTEXTALIGN

Sets alignment method

SETTEXTCOLOR

Sets text color

SETTRANSFORM

Transforms the coordinate space to rotate, translate, shift or stretch the output

SETVMI

Sets vertical spacing

TEXTCENTER

Outputs and centers a line of text

TEXTINDENT

Variation of TEXTOUT for hanging indents

TEXTOUT

Outputs a line of text

TEXTRIGHT

Outputs a line of text right justified

TEXTRECTANGLE

Output multiline text into rectangle

XOFFSET, YOFFSET

Make minor positioning adjustments.

XORIGIN, YORIGIN

Define offset from paper corner.

XMDATA, XMFIELDS

Control XTEXT mail merge

XTEXT

Print a text or RTF file into rectangle