Text alignment using ESC sequence

Jul 07, 2007 1 Replies

I am trying to print receipt using OPOS. I want to print Items on the left and the prices on the right. I tried the followings, but they don't work...



printNormal "Item 1" + ESC|rA + "123.45"



printNormal ESC|N + "Item 1" + ESC|rA + "123.45"



printNormal ESC|N + "Item 1" + CR + ESC|rA + "123.45" + ESC|N



printNormal ESC|N + "Item 1" ; printNormal ESC|rA + "123.45" + ESC|N



The printer always print 'everything' on the right. I tried with bold, and wide characters, and they behave as it suppose to be. They only format the "following" text, not entire line as the alignment.



Does anyone have any idea?


Thanks



OPOS is limited in what you can customize. This could be your problem. Craig

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required