Solved

PCL programming for stapler/stacker tray

Posted on 2004-04-06
9
1,490 Views
Last Modified: 2008-03-17
Question Title: PCL programming for stapler/stacker tray

Is the title of an issue under HARDWARE/PRINTERS it is really a programming question.

I will add 150 points to the 125 it is already offering if someone will review that post and give me an answer I can use.

Thanks

John
0
Comment
Question by:jnri
  • 6
  • 2
9 Comments
 
LVL 4

Expert Comment

by:JpmSoft
ID: 10767787
Hi,

I got many PCL and PJL sequences in my notes, But those sequences must be used for the hardware manufacturer only (yes... some of them works with more than one printer/copier, but it's not a "standard").

Could you please give the model of your printer?
How do you plan to send those commands to the printer???

I'm really sure I have the answer for this question, but I need to know more details.

0
 

Author Comment

by:jnri
ID: 10767903
Sure its the HP4300 and HP9000 series printers.

I would really like to see snipets of actual code more than I would some type of command list.

I know the commands, I just can't get them to work.  It is more of a context issue than a command issue.

Any help is greatly appreciated!!

John
0
 
LVL 4

Expert Comment

by:JpmSoft
ID: 10768293
Hmmm ok,

I'm going to check this out... hope can be back shortly with an answer.

JpmSoft
0
 
LVL 4

Expert Comment

by:JpmSoft
ID: 10768675
OK,

First of all... (sorry if I underestimate you... I need to know your skill level)

Are You Using Visual Basic for that?

If you are using VB Print Object read that:
         You can't use Visual Basic's Printer object for sending PJL/PCL Commands
         directly... you must use Passthrough API call if you want to do that.

       http://support.microsoft.com:80/support/kb/articles/Q96/7/95.ASP&NoWebContent=1





0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:JpmSoft
ID: 10768919
OK...

VB Syntax:

sText = Chr(27) & "%-12345X" & vbcrlf & _
 "@PJL SET OUTBIN=OPTIONALOUTBIN2" & vbcrlf & _
 "@PJL SET FINISH=STAPLE" & vbcrlf & _
 "@PJL SET STAPLEOPTION=ONE" & vbcrlf & _
 chr(27) & "%-12345X"

You need to send this text before anything to the printer...
if you want 2 staples change ONE for TWO on STAPLEOPTION Value.








0
 
LVL 4

Expert Comment

by:JpmSoft
ID: 10768956
This is the file from wich I found that information...

There you will find the full reference to those commands...
http://h200007.www2.hp.com/bc/docs/support/SupportManual/bpl13207/bpl13207.pdf
0
 

Author Comment

by:jnri
ID: 10769347
sText = Chr(27) & "%-12345X" & vbcrlf & _
 "@PJL SET OUTBIN=OPTIONALOUTBIN2" & vbcrlf & _
 "@PJL SET FINISH=STAPLE" & vbcrlf & _
 "@PJL SET STAPLEOPTION=ONE" & vbcrlf & _
 chr(27) & "%-12345X"

This is kind of what I am looking for.  To quickly answer your question I can program minor projects in VB but this project is in a proprietary language for healthcare of which I am very proficient.  I program PCL output to printers on a daily basis.

Some questions on the code here:
1) Does this actually work somewhere or did you just write it off the top f your head upon reading the commands?
2) You mention "put this first".. Now with PCL MOST command will work correctly regardless of the order they are sent, do you mean I should send this stuff before I send it my portrait,tray,margin,dpi commands?
3) someone else posted on the hardware board that I HAD to have
  "@PJL ENTER LANGUAGE=PCL"  somewhere in there, Ever heard of that? (I have no idea)

In case it matters this is a fairly complicated print job.  It pulls from three different trays, prints 6 total pages, 4 of them duplex, 2 are landscape, 2 rotate 180 degrees, each page has an overlay loaded onto them (image to create an electronic form) and now they want it come out on this output bin to be stapled.  


0
 
LVL 4

Accepted Solution

by:
JpmSoft earned 150 total points
ID: 10770149
Well...
Answers:
1.- No, I just paste it from the PDF wich link I sent on my last post.
2.- Yes, Usually PJL Commands are sent before PCL commands.
3.- This just turns on the printer's PCL interpreter. If your printer by default is PostScript for example, you must send this to switch it's default to PCL on this job.

There are no PCL Escape Sequences for controlling specific device accesories like finishers and special output bins because PCL has been designed to be "generic"... I mean, to work on most printers/copiers...

This should work... anyway. If you have the HP LaserJet 9000 Printer Driver Installed on Windows, what you can do is create a Word Document, then select your HP LaserJet 9000N, configure stapling, output, paper source, etc... and print to file. There you can find all the PJL required instructions (at least for each individual condition)

JPM
 
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now