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 DC

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

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 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 SIZE

Retrieve the total size of the host printer page

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 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 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 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