Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PCL programming for stapler/stacker tray

Posted on 2004-04-06
9
Medium Priority
?
1,553 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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 450 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

926 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