[comp.lang.postscript] Problems with non DEC PostScript printer

bulli@nadia.stgt.sub.org (Thomas Bullinger) (09/21/90)

Hi folks,

I have a special problem:

I want to connect a QMS PS-810 PostScript printer to a VAX. Therefore
I have bought the software "Ansi-Sixel etc." from DEC which also contains
a print symbiont (=driver) for PostScript. It works fine with an original
DEC LN 03R, but connecting the QMS instead will result in - nothing is
printed.

I checked the documentation for the DEC software and found out that the
print symbiont sends a prologue to the printer everytime it has to do its
job. Within this prologue there is a check for the printer's password.

Unfortunately the QMS printer uses another password than the LN 03R.

Since I'm not very familiar with PostScript I don't know how to change
the corresponding section of the prologue. Is there anyone who can help
me?

Here is the part of the program which I want to change. Note the
"checkpassword" on line 6.
You can send the corrected code back to me, my addresses are:


->% Copyright 1988 by DEC, Maynard, Mass.
->save exch(%%[ ReturnStatus: 155 ")print dup 40 string cvs print(" ")print
->dup where{exch get/version 2 copy known{get 40 string cvs print}{pop
->pop}ifelse}{pop}ifelse(" ]%%\n)print flush restore
->% Copyright 1988 by DEC, Maynard, Mass.
->statusdict begin dup checkpassword{serverdict begin exitserver}{pop
->end(%%[ ReturnStatus: 163 ]%%\n)print flush}ifelse
->% Copyright ) 1987 by DEC, Maynard, Mass.  All rights reserved.
->lps$page-layup-dict begin flush-pages end

P.S.: The arrows are not part of the program.

+----------------------------------------------+
| Thomas Bullinger | bulli@nadia.stgt.sub.org  |
| Hegelstr. 38B    | thomas@serum.kodak.com    |
| D-7000 Stuttgart | 76535.2221@compuserve.com |
|----------------------------------------------|
|            Don't worry, be happy             |
+----------------------------------------------+

halliday@van-bc.wimsey.bc.ca (Laura Halliday) (09/23/90)

In article <1364@nadia.stgt.sub.org> bulli@nadia.stgt.sub.org (Thomas Bullinger) writes:
>
>Hi folks,
>
>I have a special problem:
>
>I want to connect a QMS PS-810 PostScript printer to a VAX. Therefore
>I have bought the software "Ansi-Sixel etc." from DEC which also contains
>a print symbiont (=driver) for PostScript. It works fine with an original
>DEC LN 03R, but connecting the QMS instead will result in - nothing is
>printed.

I've had the best luck by telling VMS that the printer is device type
unknown, with 255 character output lines and 255 line pages. With such a
setup the VAX transmits stuff verbatim to the printer and doesn't attempt
to interpret or otherwise alter what goes through. If the printer is
plugged in to a terminal server, turn off AutoPrompt. Read the LATcp manual.

Somebody wrote a print symbiont for LaserWriters and mentioned it in one
of the vms.* newgroups. Try comp.archives for pointers.

For testing purposes try pluging a terminal in where you plug the printer
in and watch what goes by. 

...laura

reid@wrl.dec.com (Brian Reid) (09/23/90)

In article <1364@nadia.stgt.sub.org> bulli@nadia.stgt.sub.org (Thomas Bullinger) writes:
>
>I want to connect a QMS PS-810 PostScript printer to a VAX. Therefore
>I have bought the software "Ansi-Sixel etc." from DEC which also contains
>a print symbiont (=driver) for PostScript. It works fine with an original
>DEC LN 03R, but connecting the QMS instead will result in - nothing is
>printed.
>
>I checked the documentation for the DEC software and found out that the
>print symbiont sends a prologue to the printer everytime it has to do its
>job. Within this prologue there is a check for the printer's password.
>
>Unfortunately the QMS printer uses another password than the LN 03R.

PostScript printers shipped by DEC use the model number of the printer as the
default password, and passwords are strings. For example, the password of an
LN03R is (LN03R).

TRhe QMS PS810 uses an integer 0 as its default password.

The snippet of code that you posted to the net looks to me as though it is
expecting the printer password to be pushed onto the PS stack before it is
executed. This means that the symbiont is pushing some password before 
calling it.

If this were my problem, I'd handle it by prefixing the fancy code with this:
	pop 0
which pops the (character string) password put there by the symbiont and then
puts an integer 0 on the stack in its stead.

Actually, what I would really do would be to change the password of my
printer to some number besides zero, and not post that number to the net, and
then put
	pop 123435
or something like that.

Brian Reid