Please enable JavaScript to view this site.

A-Shell Consolidated Reference

Navigation: GDI Printing

Print Directives

Scroll Prev Top Next More

Below is a list of all the available print directives, with links to extended descriptions for each.

Directive

Description

 

Directive

Description

Totpages (%#)

Total pages in document

 

SETBRUSH

Sets line thickness and style for filling

BIN

Specifies paper bin or tray

 

SETFONT

Sets font

DUPLEX

Sets DUPLEX options

 

SETMAPMODE

Sets position for subsequent drawing

ELLIPSE

Draws ellipse

 

SETOPTION

Enables various printing options.

ESCAPE

Passes raw ESC codes

 

SETPEN

Sets drawing line thickness and style

IMAGE

Inserts image

 

SETPENEX

Extended version of SETPEN

LINETO

Draws a line

 

SETTEXTALIGN

Sets alignment method

META

Embeds meta data

 

SETTEXTCOLOR

Sets text color

METAFILE

Inserts metafile

 

SETTRANSFORM

Transforms the coordinate space.

MOVETO

Positions cursor

 

SETVMI

Sets vertical spacing

ORIENTATION

Sets landscape or portrait

 

TEXTCENTER

Outputs and centers a line of text

PAPERSIZE

Sets paper size

 

TEXTINDENT

Variation of TEXTOUT for indents

PASSTHROUGH

Sets printer mode

 

TEXTOUT

Outputs a line of text

PDFX

Controls PDF generation

 

TEXTRIGHT

Outputs a line of text right justified

POLYGON

Draws a polygon

 

TEXTRECTANGLE

Output multiline text into rectangle

RECTANGLE

Draws a rectangle

 

XOFFSET, YOFFSET

Makes minor positioning adjustments

RESETFONT

Restores original font.

 

XORIGIN, YORIGIN

Defines offset from paper corner

RESETLPP

Resets lines-per-page value

 

XMDATA, XMFIELDS

Controls XTEXT mail merge

SETBKCOLOR

Sets background color

 

XTEXT

Prints text or RTF file into rectangle