×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PCL in VB

PCL in VB

PCL in VB

(OP)
Does anyone know how to use PCL in a visual basic program?  here is the PCL i want to use but  i don't know how to incorporate it into VB.....

<Esc>%-12345X@PJL INFO PAGECOUNT
<Esc>%-12345X



thanks

Patrick

RE: PCL in VB

I'm having a similar problem.  If you find out what the esc code is the rest is easy.  If you get to know this please get back to me.

Many thanks

RE: PCL in VB

Hello,

You have to define a constant or variable with the decimal value equivelant to an "escape character" which is 027.  Every character equates to a decimal number.  The percent sign is equal to decimal 037.  You need some kind of an ASCII conversion chart to determine the decimal value of every character you want to send to the printer.

Then, in your program, just write those character sequences to the printer.

Tony

RE: PCL in VB

Hi Tony

Thanks for your response.  Sounds simple when you know how.  which of couse it is!

Do you now know where I can get an ascii conversion chart from?  These used to always be in the back of printer manuals and DOS manuals, but unfortunately in HP's and MS's absolute wisdom, they are no longer included.

Kind regards
Jorgen2

RE: PCL in VB

(OP)
hey Jorgen2


if you get this figured out can you email me the code you used....i am trying so far without luck....

thanks pat

RE: PCL in VB

Do a search on the internet for "ASCII" and you'll find all kinds of sites that will display it.

Good luck.
Tony

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close