Printing to a Serial printer
I am currently writing a retail program that works with a retail printer (Epson TM-U950)
I have the ESC/PoS Commands codes that the printer uses my problem is for the lofe of can not remeber how to communicatie to a Serial printer.
The printer is on COM2
Example what I need to do
I need to set the word "ESC" (CHR$(&H1B)
select just the receipit station
ESC ^1
print the store logo
ESC &^1-0
then select both stations
ESC ^7a
then start to print the sale
Example
LOTTERY 1.00
The gap is set by the count of the page - the count of the price
Example Page = 40 chrs accross price = 5 chrs
so the gap would be 33 chrs wide (a space of 1 chr at both edges)
I am using VB4 16bit on Windows 3.11
If someone could help me with some of the sample coding that would be fanstastic
Drew

