Printing Commands

The following functions are used to send data to a printer:

LPRINT 

Output text and data to a printer device

LPRINT ATTACH

Connect directly to a line printer device

LPRINT CLOSE   

Disconnect the current printer device

LPRINT FLUSH   

Flush any remaining print data to the printer device

LPRINT FORMFEED

Send a formfeed (page eject) character to the printer

LPRINT$               

Return the current printer device used for LPRINT operations

PRINTER$            

Retrieve printer names and printer port names

PRINTERCOUNT

Retrieve the number of available (installed) printers

XPRINT

Output text to a host-printer device

XPRINT ARC

Draw an arc on a host printer page

XPRINT ATTACH

Connect a host-based (GDI) printer for use with XPRINT

XPRINT BOX

Draw a box with square or rounded corners on a host printer page

XPRINT CANCEL

Cancel a print job on the host printer

XPRINT CHR SIZE

Retrieve the character size for the current font on a host printer page

XPRINT CLOSE

Detach a host printer so printing may begin

XPRINT COLOR

Set the foreground color (and, optionally, the background color) for various XPRINT statements

XPRINT COPY

Copy a bitmap to a host printer page

XPRINT ELLIPSE

Draw an ellipse or a circle on a host printer page

XPRINT FONT

Select a font to be used by the XPRINT statement

XPRINT FORMFEED

Start a new page for the host printer

XPRINT GET CLIENT

Retrieve the size of the client area (printable area) on the host printer page

XPRINT GET COLLATE

Retrieve the XPRINT collate status

XPRINT GET COLORMODE

Retrieve the XPRINT colormode status

XPRINT GET COPIES

Retrieve the XPRINT copy count

XPRINT GET DC

Retrieve the handle of the device context (DC) for the host printer page

XPRINT GET DUPLEX

Retrieve the XPRINT duplex status

XPRINT GET LINES

Retrieve the number of lines that can be printed

XPRINT GET MARGIN

Retrieve the margin sizes for the host printer

XPRINT GET MIX

Retrieve the color mix mode for a host printer page

XPRINT GET ORIENTATION

Retrieve the paper orientation for a host printer page

XPRINT GET PAPER

Retrieve the current paper size/type

XPRINT GET PAPERS

Retrieve a list of supported paper types

XPRINT GET PIXEL

Retrieve the color of a pixel on a host printer page

XPRINT GET POS

Retrieve the last point referenced (POS) by an XPRINT statement

XPRINT GET PPI

Retrieve the resolution of the host printer page

XPRINT GET QUALITY

Retrieve the print quality setting for the host printer

XPRINT GET SCALE

Retrieve the current coordinate limits for the host printer page

XPRINT GET SIZE

Retrieve the total size of the host printer page

XPRINT GET TRAY

Retrieve the active printer tray

XPRINT GET TRAYS

Retrieve a list of supported paper trays

XPRINT IMAGELIST

Print an image from an IMAGELIST

XPRINT LINE

Draw a line on a host printer page

XPRINT PIE

Draw a pie section on a host printer page

XPRINT POLYGON

Draw a polygon on a host printer page

XPRINT POLYLINE

Draw a series of connected lines on a host printer page

XPRINT RENDER

Render an image on a host printer page

XPRINT SCALE

Define a custom world coordinate system for a host printer page

XPRINT SCALE PIXELS

Resets the coordinate system to the original default pixel coordinates

XPRINT SET COLLATE

Change the XPRINT collate status

XPRINT SET COLORMODE

Change the XPRINT colormode status

XPRINT SET COPIES

Change the XPRINT copy count

XPRINT SET DUPLEX

Change the XPRINT duplex status

XPRINT SET FONT

Select a font for the XPRINT statement

XPRINT SET MIX

Set the color mix mode for a host printer page

XPRINT SET ORIENTATION

Set the paper orientation for a host printer page

XPRINT SET PAPER

Set a new paper size/type

XPRINT SET PIXEL

Set the color of a pixel on a host printer page

XPRINT SET POS

Retrieve the last point referenced (POS) by an XPRINT statement

XPRINT SET QUALITY

Set the print quality for a host printer

XPRINT SET TRAY

Set a new active printer tray

XPRINT STRETCH

Copy and resize a bitmap to a host printer page

XPRINT STYLE

Set the line style to be used by various XPRINT statements

XPRINT TEXT WIDTH

Calculate the size of text to be printed on a host printer

XPRINT WIDTH

Set the graphic line width to be used by various XPRINT statements

XPRINT$

Return the name of the attached host printer