• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1560
  • Last Modified:

PCL programming for stapler/stacker tray

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
jnri
Asked:
jnri
  • 6
  • 2
1 Solution
 
JpmSoftCommented:
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
 
jnriAuthor Commented:
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
 
JpmSoftCommented:
Hmmm ok,

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

JpmSoft
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
JpmSoftCommented:
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
 
JpmSoftCommented:
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
 
JpmSoftCommented:
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
 
jnriAuthor Commented:
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
 
JpmSoftCommented:
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

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now