Solved

PCL programming for stapler/stacker tray

Posted on 2004-04-06
9
1,528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

734 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