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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the command to print a character! 1

Status
Not open for further replies.

Necrosaro

Technical User
May 23, 2002
12
US
I need to make a 5 point star for a document in PCL but the wingding character doesnt have a key on the keyboard so I need to use a decimal code to print it, its Hex code is AB and its deci code is 171. I tried using ESC*c171E but it didnt seem to do anything. What do I need to do to get it to print out on the document.

Thanks
 
This is not a PCL issue as such, as you simply send the
desired character to the printer to get it to print.
It is the responsibility of you application to deliver the
correct character to the printer.

Your "application" in this case is probably just a text
editor. Many editors provide a mechanism to insert 8 bit
characters into the text. Check the help file. Maybe something like Alt-171 will do it.
Whatever mechanism
you use to enter the <esc> character is probably will
do it for you. <esc> is char 27 and now you want char 171.

You will have to make sure that you have the proper symbol
set selected for this to work.

Jim Asman
 
Yes thanks you were correct. I use Octal numbers in my program to access the escape sequence <033>, just had to convert the decimal value of 171 into octal which is 253 and it worked! Never thought of that, but its so simple I should of known...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top