🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5747

How to switch paper trays?

#5747
From: Jonathan Monsarrat
Date: Thu, 19 Nov 1992 21:58
50 lines
2228 bytes
I'm posting this for a friend. --Jon

------------------------------------------------------------
Hello netters (or should I say nutters???  :-)

I am having trouble posting to this group and so Jonathan Monsarrat has
been kind enough to post this article on behalf of myself.  Please address
any replies to pjc@melb.bull.oz.au, not to the poster.

I am trying to develop some postscript code that will control which of
two paper trays the next page will be printed from.  Unfortunately, I
do not have access to such a printer to test my code and the one
person I know who does have access seems to be unavailable at the
moment.

I have defined the following functions in my prolog:

/BinT {statusdict begin 0 setpapertray end} def
/BinB {statusdict begin 1 setpapertray end} def

Before each StartPage sequence, I call one of the above functions to
set the desired paper tray.  E.g.

BinT
StartPage

My contact, as mentioned above, did get to try it once and said that
it didn't seem to work before he became unavailable, so I have the
following questions:

1. I suspect that different printers may number their paper trays
   differently (i.e. 0 and 1 or 1 and 2).  Is this the case and, if
   so, what printers use what numbers?  Is there a way of querying the
   printer about its paper trays?

2. Is my usage of the setpapertray command correct?

I would appreciate any and all information relating to this topic - would
you please email me at pjc@melb.bull.oz.au and I will arrange to have the
results posted if there is any interest.

Thanks in advance!

Blueskies from down-under,
Paul

| Paul Carapetis, Software Advisor (Unix, DOS, C)|   Phone: 61 3 2464944     |
| Internet: pjc@melb.bull.oz.au            | There are only two experiences  |
| #define STD_DISCLAIMER _my_opinion_only  | in life: successes and lessons! |
Technical Details
Message-ID: <1992Nov19.215824.4822@cs.brown.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!jgm

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!jgm
From: jgm@cs.brown.edu (Jonathan Monsarrat)
Subject: How to switch paper trays?
Message-ID: <1992Nov19.215824.4822@cs.brown.edu>
Sender: news@cs.brown.edu
Organization: Brown University Department of Computer Science
Date: Thu, 19 Nov 1992 21:58:24 GMT
Lines: 50