I have an existing Visual Basic 6 program which prints to an attached (LPT1) Dot Matrix Printer.
Printing is done by first sending the output to a file and from there sending it to the printer.
There are a set of Escape Sequences like
Print #1 chr(15); chr(3); strVarName
Print #1 chr(15); strVarName ; Chr(18)
to make the font condensed, bold etc., which print to the file from which the output is sent to the printer.
The customer has purchased a new Epson TM - 220D , USB POS printer having a 76mm width paper roll. I have suitably modified the vb6 code and it now prints to a USB printer. However, I find that the existing escape sequences are ignored by this printer.
My existing code uses the following and works
'Codes used are as follows: 'Chr(14)---Double Wide 'Chr(15)---Codensed Mode 'Chr(18)---Cancel Condensed Mode 'Chr(69)---Emphasized Mode (makes text appear bold) 'Chr(27)---Emphasized Mode(makes text Bold) 'Chr(9)----Horizontal Tab 'Chr(1)---Center Align 'Chr(2)---Right Align 'Chr(3)---Left Align
Print #1, Chr(15); Chr(14); strTemp; Chr(18) 'Print Bold/condensed.
This above has been working on a 80 column dot matrix Epson printer for years now!
My new Epson TM - 220D , USB POS printer's manual states some escape sequences such as
#B,tL, bL, bC, 1C, 2C, 3C, 4C, cA, rA, N.
But doesn't mention how these are to be used.
Print #1, "\bL"; strTemp Print #1, "\#B"; strTemp
But I'm not able to print one bold line.
Will someone please help out?