Solved

PCL programming for stapler/stacker tray

Posted on 2004-04-06
9
1,486 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 4

Expert Comment

by:JpmSoft
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

763 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

6 Experts available now in Live!

Get 1:1 Help Now