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!

Esc Sequence to print bold

Status
Not open for further replies.

crmayer

Programmer
Nov 22, 2002
280
US
I need to send an esc sequence to a printer to print a couple of lines in bold type and was wondering if anybody knew where I could find the command for bold type for a Aficio 250 printer???
I have the manual here but there is nothing in there about commnad line commands or flags.
 
>> where I could find the command for

did you try Google?

-pete
I just can't seem to get back my IntelliSense
 
OK, I talked with somebody at Ricoh and they told me that I need to just use the HP codes for the bold attrib.
So I found the HP code on the internet:
(s3B - bold on
(s0B - bold off

So when I try this, it just prints it as regular text to the file. Any ideas?

formPrint(lineno, 1, "[(s3B");
newline();
formPrint(lineno, 1, "TEXT");
newline();
formPrint(lineno, 1, "[30B");

Any help??
 
> formPrint(lineno, 1, "[(s3B");
Try
formPrint(lineno, 1, "\033[(s3B");

033 is an octal number, which is 27 decimal - ie, escape
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top