[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| PRINTJOB ... ENDPRINTJOB |
+---------------------------------+
PRINTJOB
<statements>
ENDPRINTJOB
-----------------------------------
Activates print job settings.
-----------------------------------
The PRINTJOB command initializes the printer and certain system memory
variables that affect printed output. PRINTJOB can send control codes
to the printer, eject a page from the printer before and/or after a
print job, initialize the printer column number and control the number
of copies printed.
Issuing PRINTJOB:
. Sends starting printer control codes to the printer. The printer
control codes are stored in the system memory variable _PSCODE. For
more information, see the System Memory Variables chapter in the FoxPro
Commands and Functions Guide, or the topics on system memory variables
in this help facility. Also, check your printer manual for more
information on printer control codes.
. Performs a page eject if the system memory variable _PEJECT is set to
. Sets the system memory variable _PCOLNO to 0. The system memory
variable _PCOLNO stores the printer column number.
Issuing ENDPRINTJOB:
. Sends ending printer control codes to the printer. This allows you
to reset the printer to its original configuration before the PRINTJOB
command was issued. The ending printer control codes are stored in the
system memory variable _PECODE.
. Performs a page eject if the system memory variable _PEJECT is set to
. Loops back to PRINTJOB to print another copy of the report. The
number of copies is determined by the value of the system memory
variable _PCOPIES. When the number of copies printed equals the value
of _PCOPIES, FoxPro exits the loop. Program control then begins with
the command immediately following ENDPRINTJOB.
PRINTJOB and ENDPRINTJOB may only be executed from within a program. You
may not nest PRINTJOB commands.
-----------------------------------
See Also: ON PAGE, EJECT PAGE, SET PRINTER
-----------------------------------
See Also:
ON PAGE
EJECT PAGE
SET PRINTER
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson