PCL Printing on HP 9000n

Hello all!

I'm trying to get a separator page to print from our HP 9000n from tray 2 and the rest of the print jobs on tray 4.  I'm partially successfull.  With the PCL code below, I am able to print the the separator page from tray 2, colored paper, along with the first page of the print out.  Then the rest of the print out comes out on regular white paper.  The printer is shared through our Win2k8 with the HP universal PCL5 print drivers.  Any help is appreciated.  Thank you.


\
\H1B\L%-12345X@PJL ENTER LANGUAGE=PCL
\H1B\L&l1H\0
\M\B\S\N\U
\U\LJob : \I
\U\LDate: \D
\U\LTime: \T
\E
ariel_sAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ariel_sAuthor Commented:
Also i've set the default tray of the printer properties on the win2k8 as tray 4.  Don't know if this makes a difference or not.  I'm also open to using postscript or a combination of the two if I need to as long as it pulls the papaers properly.

Thanks
0
ariel_sAuthor Commented:
OK.  I've got a temporary work around.  I've put my colored paper on tray 3 and white paper on tray 2 and tray 4.  The page separator pulls from tray 3, but I see the printer pulling from tray 2 for the print page of the print out then changes to tray 4 for the remaining pages.  Below is the current PCL commands I'm using.  I am not sure why it pulls Tray 3, then 2, then 4.  

\
\H1B\L%-12345X@PJL ENTER LANGUAGE=PCL
\H1B\L&l5H\0
\M\B\S\N\U
\U\LJob : \I
\U\LDate: \D
\U\LTime: \T
\E

Thanks
0
hdhondtCommented:
I believe the magic number for tray 4 is 20.

So, in the separator page you should have:

\H1B\L&l20H\0

Here's the full list of tray numbers for the LJ9000:

Tray 1: 4
Tray 2: 1
Tray 3: 5
Tray 4: 20
Auto Select: 7
Manual Feed: 2

I found them here.

Note that 5 is used for tray 3
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

ariel_sAuthor Commented:
If I understand the PCL code you suggested, this will pull the separator page from tray 4?  If that's the case I want it to pull from tray2 which I've tried unsuccessfully.  Or should this be a line added so it looks something like this:


\
\H1B\L%-12345X@PJL ENTER LANGUAGE=PCL
\H1B\L&l1H\0
\H1B\L&l20H\0
\M\B\S\N\U
\U\LJob : \I
\U\LDate: \D
\U\LTime: \T
\E
 
I want the separator to pull from tray 2 and everything else from tray 4.
0
hdhondtCommented:
Only one tray can be active. Hence the line "\H1B\L&l20H\0" will override the previous one.

However, I overlooked your statement that page 1 of the report also comes from tray 2 - which made me think you want to use tray 4. In that case your code was correct.

After printing the separator page the print job should take over and select which tray to use, from page 1 onwards. It appears that something is wrong there, and I suspect this is not a Windows print job, but rather from a DOS application.

If it is a Windows application, check its settings. For example, in Word you can select different trays for different pages, from Page Setup.

For a DOS job I can't advise you, but one thing you could try is to insert either a PCL printer reset command or another tray selection command on the line before /E

Assuming you want to use tray 1, the command should be \H1B\L&l4H\0

The reset command is \H1B\LE\0

For a DOS job, also check which tray is set (on the printer) as the default tray.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DansDadUKCommented:
I support hdhondt in his diagnosis so far, so just a few comments:

(a) The PCL escape sequences embedded in the sample separator page files shown dictate what tray the separator page should be drawn from, but don't do anything to affect the tray used for the print job itself.

(b) As hdhondt says, with Windows print jobs, the generate print stream will contain PCL initialisation sequences to select the required paper input tray, using a combination of the the required Paper Size (e.g. A4), Paper Type (e.g. "Plain") and Paper Source (PCL tray identifier).

All three attributes are not always present; some drivers use Paper Size and Paper Type as sufficient to identify a required source.
This has advantages, as the PCL tay identifiers used can vary from model to model, and it allows more than one tray to satisfy a combination, providing a 'cluster' feature.

(c) From the symptoms, it seems likely that your print jobs are not produced by a standard Windows driver, hence you really need to analyse just what is present in those print jobs to determine what the printer is being asked to do.

(d) A 'printer reset' escape sequence will restore the User Default Environment, part of which is to select the default paper tray; without a reset, the current selected tray should remain in force.
0
ariel_sAuthor Commented:
Found the problem.  On my win2k8 print server I've set the printer defaults to pick from tray 4 and to remove a separator page in the "Special Pages section".  The trick/problem was if the local machines application was open, say email or a pdf doc, the changes are cached, for lack of a better word.  But if I close the application and open it back up again, it pulls the printer defaults set on the print server.  

Thanks for all the help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Printers and Scanners

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.