4-22

PostScript

setpapertray

integer setpapertray —

changes the active paper source for the next page through the end of job by setting the PageSize entry in the page device to the size loaded in the selected source and by setting MediaPosition to the selected source. This operator executes a setpagedevice.

The PageSize Policy page device parameter is not altered by this operator.

Use the following integers to set the paper tray:

0Tray 1

1 Tray 2

2 Multipurpose Feeder or Envelope Feeder

3 Manual Paper

4 Manual Envelope

5 Tray 3

7 Multipurpose Feeder

8 Tray 4

9 Tray 5

Notes:

If the Manual Paper or Manual Envelope source is selected, the Manual- Feed page device parameter is set to true.

A rangecheck error is returned if a paper source that is not installed is selected.

If a setpapertray operator is issued for the back of a duplexed page, the printer ejects a blank back page, changes the paper source, and prints the information for the back side of the page on the front side of a page from the new paper source.

The setting returns to the user default setting for the Paper Source menu item at the end of the print job.

Errors: rangecheck, stackunderflow, typecheck

Page 227
Image 227
Lexmark Printer manual Setpapertray, Errors rangecheck, stackunderflow, typecheck