Article ID: 156032
Article Last Modified on 2/8/2005
@1,1 SAY CHR(27)+ '(s3B' + 'Pay to the order of:' &&BOLD on @1,40 SAY CHR(27)+ '(s30' + 'John Doe' &&BOLD offNote that the second @...SAY has incremented the column count by five to offset the five escape codes.
* Escape code CHR(27)+'&35C' starts the name in column 35
@1,1 SAY CHR(27)+ '(s3B' + 'Pay to the order of:;
'+CHR(27)+'(s0B'+CHR(27)+'&a35C'+'Jack Doe'
Column number: 1 35 Pay to the order of: John Doethe code would appear as follows for an HP LaserJet printer:
@1,1 SAY CHR(27)+ '(s3B' + 'Pay to the order of:' &&[ASCII 146](s3B'= BOLD on @1,35 SAY CHR(27)+ '(s30' + 'John Doe' &&[ASCII 146](s30'= Bold offwhere 'Pay to the order of:' is bold and the name is non-bold text. The printer would move the name five columns to the left. This occurs because the printer requires five escape codes, 'CHR(27)'+'('+'s'+'3' +'0', to turn off bold formatting. The actual printer output would look like the following:
Column number: 1 30 Pay to the order of: John Doe
* Start of code example SET DEVICE TO PRINTER ???"" @1,1 SAY '1 10 20 30' &&Column numbers @2,1 SAY CHR(27)+ '(s3B' + 'Pay to the order of:' &&Turn bold on @2,35 SAY CHR(27)+ '(s0B' + 'John Doe' &&Turn bold off SET DEVICE TO SCREEN SET PRINTER TO &&Flush print job * end of code
Additional query words: kbdsd VFoxWin
Keywords: KB156032