PCL

From BR Wiki
Revision as of 17:02, 5 April 2013 by Laura (talk | contribs)
Jump to navigation Jump to search

The following Substitute codes work in PCL. Those with a * will work only in PCL. Note that some of these are also mentioned in the "Page Setup Options" section of this chapter.

Initial configuration

(The following must be done before anything is printed to the printer)

[PORTRAIT] Sets the printer to print portrait
[LANDSCAPE] Sets the printer to print landscape


Logical Page Size

The next six settings change the logical page size for printing on {\ul different sized pages}:

[EXECUTIVE] Set the logical page for Executive size paper (7.25 x 10.5)
[LETTER] Set the logical page for Letter size paper (8.5 x 11)
[LEGAL] Set the logical page for Legal size paper (8.5 x 14)
[LEDGER] Set the logical page for Ledger size paper (11 x 17)
[A4PAPER] Set the logical page for A4 size paper (210mm x 297mm)
[A7PAPER] Set the logical page for A7 size paper (297mm x 420mm)


The next five settings change the logical page size for printing on {\ul envelopes}:

[MONARCH] (3 7/8 x 7.5)
[COM-10] (4 1/8 x 9.5)
[INTERNATIONAL DL] (110mm x 220mm)
[INTERNATIONAL C5] (162mm x 229mm)
[INTERNATIONAL B5] (176mm x 250mm)


Paper Source

The following six options set the paper source. By default it is set to Auto, and can be changed in printer preferences: [PAPERSOURCEAUTO]|Feed from Printer Default
[PAPERSOURCEMANUAL]|Feed from manual feeder
[PAPERSOURCEMANUALENVELOPE]|Feed Envelope from manual feeder
[PAPERSOURCETRAY2]|Feed from Lower Tray
[PAPERSOURCEOPTIONAL]|Feed from Optional Input
[PAPERSOURCEOPTIONALENVELOPE]|Feed from Optional Envelope Feeder .............(Must set to Envelope size first)

Multiple Copies

The following options will set the printer to print multiple copies. I have supported 1 - 10 copies. See a note at the end for more, or else do the PCL yourself. J

*[COPIES01] I
*[COPIES02] wont
*[COPIES03] patronize
*[COPIES04] you
*[COPIES05] to
*[COPIES06] pretend
*[COPIES07] you
*[COPIES08] can't
*[COPIES09] understand
*[COPIES10] this


Duplex/NonDuplex modes

These three options set the printer to print in Duplex mode:

*[SIMPLEX] Standard one sided printing
*[DUPLEX] Long edge binding double sided environmental printing
*[DUPLEXSHORTEDGE] Short edge binding double sided printing


Long edge binding is like your standard book. Short edge binding would be used for a calendar or one of those funky long picture books.

Top Margin

The following six options set the top margin: how many rows at the top of the logical page to reserve for blank space:

*[TOP0] Begin printing at the top of the logical page
*[TOP1] Skip one line, then begin printing
*[TOP2] Skip two lines, then begin printing
*[TOP3] Skip three lines, then begin printing
*[TOP4] Skip seventeen lines, then begin printing
*[TOP5] Skip five lines, then begin printing

PrintDir

The PrintDir configuration statement places a copy of all print files spooled by BR into the specified directory. When BR sends the file to the spooler, it makes a copy of the file using the main active program name with a suffix of the channel number (default is 255).

Syntax

PRINTDIR directory-path  [+DATE] [+TIME] [+LOGIN_NAME] [+CHANNEL] [\LOGIN_NAME] [RAW]

The +DATE, +TIME and +LOGIN_NAME pertain to the output base filename. The \LOGIN_NAME keyword inserts a directory name after directory-path. +CHANNEL replaces the filename suffix prt with the channel number of the Open statement used to create the report.

For example, a payroll program (PRREG) prints a register using the following open statement:

OPEN #40: "Name=PRN:/LASER2,Recl=133", DISPLAY, OUTPUT

BR stores a copy of the report in {pathname}\PRREG.40

This option is also available through the CONFIG command.

Optional Keywords

The PRINTDIR statement has the following optional keywords (as of 4.3):

( Note- each keyword is separate and must be separated from preceding specifications by one or more spaces. )

+DATE Adds the system date to the report filename.

+TIME Adds the system time to the report filename.

+LOGIN_NAME Adds the user’s login name to the filename.

+CHANNEL Adds the OPEN file number to the filename (previously the default file suffix).

RAW Stores the PRINTDIR file in an untranslated format. This permits subsequent printing of the output to a variety of destinations with corresponding printer translation specifications. (e.g. TYPE filename PRINTER_TYPE=NWP >display-file –or- TYPE filename >DIRECT:/HP where HP is a case sensitive Windows printer name substring )

\LOGIN_NAME Stores the file in a subdirectory to the specified directory-path which is named the same as the user’s login name.

Examples

PRINTDIR  pathname  +DATE +TIME +CHANNEL 

Produces a display file:

pathname\program-date-time.255

PRINTDIR pathname RAW  \LOGIN_NAME 

Produces a display file:

pathname\login_name\program.prt

which can subsequently be TYPEd using various printer definitions.



New Print PREVIEW Features-

Page movement
<< and >> go 10% of the document
< and > go a single page


Select Printer Button - Reselects the printer for subsequent PREVIEW printing. Note- this will not alter the escape sequences embedded in the printer output. But under NWP this should be printer generic.