Identifies the current print form file or activates another one.

Syntax

_pform = <filename>

<filename>

The name of a print form file (.PRF).

Default

The default for _pform is an empty string ("").

Description

Use _pform to determine the name of the current print form file or to activate another one. A print form file (.PRF) is a binary file that contains print settings for printing a print job. The print form file contains the following system memory variables:

Variable

Action

_padvance

Determines whether the printer advances the paper with a formfeed or linefeeds.

_pageno

Determines or sets the current page number.

_pbpage

Specifies the page number at which PRINTJOB begins printing.

_pcopies

Specifies the number of copies to print in a printjob.

_pdriver

Activates a specified printer driver. (If the print form file is from dBASE IV, dBASE Plus ignores this value.)

_peject

Controls page ejects before and after PRINTJOB.

_pepage

Specifies the number of the last page that PRINTJOB prints.

_plength

Specifies the number of lines per page for streaming output.

_ploffset

Determines the width of the left border on a printed page.

_ppitch

Sets the printer pitch, the number of characters per inch that the printer prints.

_pquality

Specifies if the printer prints in letter-quality or draft mode.

_pspacing

Sets the line spacing for streaming output.

 

When you specify a print form file by assigning its name to _pform, the values stored in the file are assigned to their respective variables. Jobs you send to the printer then behave in accordance with these variables.