Development Topics > GDI Printing

GDI Printing Directives

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

FTP

FTP transfer

IMAGE

Inserts image

LINETO

Draws a line

META

Embeds unspecified meta data

METAFILE

Inserts metafile

MOVETO

Positions cursor

PAPERSIZE

Set paper size

PASSTHROUGH

Set printer mode

PDFX

Controls generation of PDF documents

POLYGON

Draws a polygon

RECTANGLE

Draws a rectangle

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

SETPEN

Sets line thickness and style for drawing

SETPENEX

Extended version of SETPEN

SETTEXTALIGN

Sets alignment method

SETTEXTCOLOR

Sets text color

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

XMDATA and XMFIELDS

Control XTEXT mail merge

XTEXT

Print a text or RTF file into rectangle