Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCL code to give space

Status
Not open for further replies.

RP001

Programmer
May 12, 2003
15
IN
Is there a PCL code to give space between 2 fields. Eg.
<First Name field> <space> <Second Name field>
I am looking for a PCL command for the <space> in above.
I know I have to terminate <First Name field> with this PCL command.

Escape sequence should be good enough.

I am using Lexmark printer which support the HP PCL commands.

Thanks!
 
The spacebar should do it. :)
Really! chr(32).

But if you want an escape sequence then ...

<esc>*p+###X

where ### is the number of dots you want the cursor advanced. If the user units command <esc>&u###D has not been set then the dots are at 300dpi; otherwise, the value given in the user unit command.




Jim Asman
jlasman@telus.net
 
Thanks Jim, you are just great! Its working fine.

I didn't know there is a space bar on keyboard :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top