Printing Commands

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

Retrieves the number of available (installed) printers.

XPRINT(CANVAS.X)

Retrieves the writable width of the host printer page.

XPRINT(CANVAS.Y)

Retrieves the writable height of the host printer page.

XPRINT(Cell.Size.X)

Retrieves the character cell width including external leading.

XPRINT(Cell.Size.Y)

Retrieves the character cell height including external leading.

XPRINT(Chr.Size.X)

Retrieves the character width on the host printer page.

XPRINT(Chr.Size.Y)

Retrieves the character height on the host printer page.

XPRINT(Client.X)

Retrieves the width of the client area (printable area) on the host printer page.

XPRINT(Client.Y)

Retrieves the height of the client area (printable area) on the host printer page.

XPRINT(Clip.X)

Retrieves the width of the clip area on the selected printer.

XPRINT(Clip.Y)

Retrieves the height of the clip area on the selected printer.

XPRINT(COL)

Retrieves the next column print position, based upon the row and column position of a text cell.

XPRINT(COLLATE)

Retrieves the XPRINT collate status.

XPRINT(COLORMODE)

Retrieves the XPRINT colormode status.

XPRINT(COPIES)

Retrieves the XPRINT copy count.

XPRINT(DC)

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

XPRINT(DUPLEX)

Retrieves the XPRINT duplex status.

XPRINT(LINES)

Retrieves the number of lines that can be printed.

XPRINT(MIX)

Retrieves the color mix mode for a host printer page.

XPRINT(ORIENTATION)

Retrieves the paper orientation for a host printer page.

XPRINT(OVERLAP)

Retrieves the status of XPrint Overlap Mode.

XPRINT(PAPER)

Retrieves the current paper size/type.

XPRINT(PIXEL...)

Retrieves the color of a pixel on a host printer page.

XPRINT(POS.X)

Retrieves the last horizontal point referenced (POS) by an XPRINT statement.

XPRINT(POS.Y)

Retrieves the last vertical point referenced (POS) by an XPRINT statement.

XPRINT(PPI.X)

Retrieves the horizontal resolution of the host printer page.

XPRINT(PPI.Y)

Retrieves the vertical resolution of the host printer page.

XPRINT(QUALITY)

Retrieves the print quality setting for the host printer.

XPRINT(ROW)

Retrieves the next row print position, based upon the row and column position of a text cell.

XPRINT(SELECTION)

Retrieves the status of the SELECTION flag.

XPRINT(SIZE.X)

Retrieves the width of the host printer page.

XPRINT(SIZE.Y)

Retrieves the height of the host printer page.

XPRINT(STRETCHMODE)

Retrieves the default bitmap stretching mode for the attached DC.

XPRINT(TEXT.SIZE.X...)

Calculates the width of text to be printed on a host printer.

XPRINT(TEXT.SIZE.Y...)

Calculates the height of text to be printed on a host printer.

XPRINT(TRAY)

Retrieves the active printer tray.

XPRINT(WORDWRAP)

Retrieves the status of XPRINT WordWrap Mode.

XPRINT(WRAP)

Retrieves the status of XPRINT Wrap Mode.

XPRINT$

Returns the name of the attached host printer.

XPRINT$(ATTACH)

Returns the name of the attached host printer.

XPRINT$(PAPERS)

Retrieves a list of supported paper types.

XPRINT$(TRAYS)

Retrieves a list of supported paper trays.

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 CELL

Sets or Retrieves the next print position for a text cell.

XPRINT CELL SIZE

Retrieve the character cell size including external leading.

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 FORMFEED

Start a new page for the host printer.

XPRINT GET ATTACH

Retrieve the name of the attached host printer.

XPRINT GET CANVAS

Retrieves the buffer size of the attached host printer.

XPRINT GET CLIENT

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

XPRINT GET CLIP

Retrieves the size of the clip area on the selected printer.

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 OVERLAP

Retrieves the status of XPrint Overlap Mode.

XPRINT GET PAGES

Retrieves the XPRINT page number limits for this print job.

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 SELECTION

Retrieves the status of the SELECTION flag.

XPRINT GET SIZE

Retrieve the total size of the host printer page.

XPRINT GET STRETCHMODE

Retrieves the default bitmap stretching mode for the attached DC.

XPRINT GET TRAY

Retrieve the active printer tray.

XPRINT GET TRAYS

Retrieve a list of supported paper trays.

XPRINT GET WORDWRAP

Retrieves the status of XPRINT WordWrap Mode.

XPRINT GET WRAP

Retrieves the status of XPRINT Wrap Mode.

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 PREVIEW

Display a replica of a printed document on the screen.

XPRINT PREVIEW CLOSE

Reverts XPRINT output back to the host printer.

XPRINT PRINT

Output text to be printed on the selected printer.

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 CLIP

Establishes margins around the outer edges of the print page.

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 OVERLAP

Enables or disables XPRINT Overlap Mode.

XPRINT SET PAGES

Sets the XPRINT page number limits for this print job.

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 STRETCHMODE

Sets the default bitmap stretching mode for the current DC.

XPRINT SET TRAY

Set a new active printer tray.

XPRINT SET WORDWRAP

Enables or disables XPRINT WordWrap Mode.

XPRINT SET WRAP

Enables or disables XPrint Wrap Mode.

XPRINT SPLIT

Splits a string into two parts for printing with XPRINT.

XPRINT STRETCH

Copy and resize a bitmap to a host printer page.

XPRINT STRETCH PAGE

Copy and resize a bitmap to the clip or client area of the 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.