Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Printing to a Serial printer

Hi

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
[998 byte] By [Drew_gable] at [2007-11-11 7:39:56]
# 1 Re: Printing to a Serial printer
Try this:
http://support.microsoft.com/kb/q154078/
Phil Weber at 2007-11-11 17:26:33 >