|
Post by wtc on May 15, 2021 17:04:41 GMT 1
Thank you, Jos, As I recollect <ESC>+ = chr(43) and <SOH> = chr(1) and <ESC>5 = chr(5) . I'm not sure about the "+" sign you placed next to the <ESC>--I know that <ESC> by itself should probably = chr(27). Thus, the first line in a receipt, once I "set printer on," would be to send the string:
to initialize the printer. Does this look correct? Then I'd send the string to kick the cash register draw open, correct? Or would I put the kick string first (assuming the printer I'm using has a connection to kick the register drawer)? I appreciate this, Wayne
|
|
|
Post by Jos on May 15, 2021 23:14:34 GMT 1
Would be: chr(27)+chr(43)+chr(1)+chr(27)+chr(5).
The receipt printer seems to treat this code sequence as the command to open the register drawer. If you use another receipt printer, a different code sequence code could be needed to do the same. It probably doesn’t matter when the code sequence is sent to the printer.
Jos
|
|
|
Post by wtc on May 16, 2021 7:07:40 GMT 1
Hello, Jos, Success! I got it going with:
That last chr(65) was trial and error to get the lines separated to something very close to 6 lines per inch. (I suppose 60 * 1/360 would suggest the real number, but 65 seems right.) I can play with the anti-italics part some other time. I thank you and the others who joined in, and "thank you" to the forum. vDos is an extraordinary product. Sincerely, Wayne
|
|