TRAY

Top  Previous  Next

Syntax

 

tray paper-source

 

Description

 

The tray keyword can be used to specify the paper source for any copy or for the print job.  If, for example, you have two input trays, one with letterhead stock and one with plain stock, you can specify which paper stock to use for any form or copy of a form.

 

Trays can be varied by copy, to pull different paper for different copies.

 

The paper-source is printer dependent.  Typically, tray 1 is an upper tray source, tray 2 is a manual feed source, and tray 4 and 5 are a lower and middle paper sources.  These will likely not coincide with physical tray numbers labeled on the printer itself, unfortunately.  To determine the proper tray values, see your printer's documentation for the paper source command.

 

The printer model’s (-m command line option) PPD file (or generic pcl.ppd or ps.ppd files) can specify *InputSlot paper-source entries which are used if present.

 

When producing output to a *winprt* Windows printer, the tray command specifieds a tray number that is assigned by the vendor, typically a number over 256, though there are pre-defined Windows values published by Microsoft that some vendors honor.  A list of tray numbers for a Windows printer can be obtained with the system object, using the winprttrays$(printer$) method.

 

Example

 

tray 5

 

if copy 2

  tray 4

end if

 

Drivers: pcl, ps, *winprt* only