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

Sending Control Characters to a Printer 1

Status
Not open for further replies.

JackSchu

Programmer
Mar 5, 2000
2
US
I am trying to send control characters to a KPX-1124 printer. I want to control print spacing in a label printing. The KPX-1124 expects an ASCII 27 as an escape character, but it does not work for me. I am wondering if there is some
 
Do you check to print a canvas and adding the char(27) and the escape code to the printer mayby this works!!
 
RickyDi - I am using the Canvas &quot;method&quot;. I am having no problem changing the font size, but any escape sequences are printed as characters. The method I am using is<br>
<br>
WriteLn(PrintText, #27#nn#nn)<br>
<br>
Is there another way to do this?
 
I think yes. You could just make a string with chr(27)+'\n'+'\n' and do writeln with this maybe is work i dont know but try it maybe is work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top