1828225 Members
2330 Online
109975 Solutions
New Discussion

Re: form types

 
Julian Mathews
Occasional Contributor

form types

Hi,

I have to write a form type to print a postscript file from a selected tray for an HP4200n printer using either PJL or postscript. As I understand it the tray is associated with a paper type.

Does anybody have an example of code for this or alternatively can anybody point out a good online reference. I have read the HP PJL manual but couldnt find anything I could use.

Any help appreciated thanks.
4 REPLIES 4
Willem Grooters
Honored Contributor

Re: form types

I have no real example but maybe this helps, I've actually done the same for using a non-standrad printer in the network.
The form needs to contain the sequences by wich the printer is initialized to process the queued file.
As I see it:

1. Reset to a known state (not explicitly needed but quite advisable)
2. Issue the sequences that select:
a. the right paper (size, orientation)
b. the right tray
c. the right font (type, size)
d. the right whitespace (line advance etc)
and propably more

You'll find the exact sequences in your printer manual.

HTH

Willem


Willem Grooters
OpenVMS Developer & System Manager
Burkart Beat
Frequent Advisor

Re: form types

Hi

It is important, that the form does not change anything of the .PS file...

I recommend this:
PS$FORM (stock=DEFAULT) 2222 DOKU$FORM /STOCK=DEFAULT /WIDTH=255

Make the queue using this form as follows:

set queue xxxx/DEFAULT=(FORM=PS$FORM (stock=DEFAULT))

Hope this helps... btw I use /PROCESSOR=UCX$TELNETSYM

Regrard
Beat
Lokesh_2
Esteemed Contributor

Re: form types

If you are running DCPS, then it will be good idea to define DCPS printer queue for this printer. DCPS will allow you to select a particular tray of a printer . Also it has other useful parameters which will select the sheet size for your, or print in both directions ...etc.

What would you do with your life if you knew you could not fail?
Ian Miller.
Honored Contributor

Re: form types

DCPS is licenced with VMS so if you have a current VMS licence then DCPS is free!
You did not say which version VMS but DCPS installs on a wide range of versions.
____________________
Purely Personal Opinion