Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Print a "Control" Fonts Character to POS printer?

Status
Not open for further replies.

sohrab100

Programmer
Jan 18, 2002
56
HK

The Model of POS Printer is Epson TM-U210 Series which can be connected a cash drawer with the features that can open a cash drawer through the "Control" font "A" sending to the COM Port POS Printer.

How to print a "Control" Fonts Character "A" to POS Printer?
Using Report? Letter Label? or Using the command "???"

I have try to use mscomm activex control, but i can't set portopen to true, any suggestion?


sohrab100
 
hi Mike Lewis,

It's not CTRL-A, it's Font: "Control" with character "A" printed to the printer.
sohrab100
 
send the foluing char directli to printer and it should work

??? ESQ
??? "{10}"

fonts:

ESQ GRA = "{27}{33}{54}"
ESQ MED = "{27}{33}{33}"
ESQ NOR = "{27}{33}{0}"
ESQ PEQ = "{27}{33}{1}"

Drawer:

esq = "{27}{112}02"

cuting paper

esq = "{27}{105}"
 
Have you tried using?:

??? "A" Font "Control"
Dave S. [cheers]
 
hi cjulio,

What do the code means? It work fine!
I have seems one more method ESC\POS manual, it is as follows:

???chr(27) + chr(112) + chr(1) + chr(25) + chr(25)

Is there any different?

Also, when i try both method, for the cash drawer locked with key, i can still open it in both command, is it the problem of cash drawer or the problem of code so powerful?
sohrab100
 
??? "A" Font "Control"
Translated, means print the character "A", directly to the printer port, using the font named 'Control'.
Since you can use the printer control codes you mentioned, the 'Control' font is communicating with the printer driver and taking the "A" and effectively converting it to "chr(27) + chr(112) + chr(1) + chr(25) + chr(25)" to send to the printer port or drawer.
Since both commands will open the locked drawer, I'm guessing you either need to use different sequences, or there is a problem with the drawer not recognizing the lock/lock status.
Dave S. [cheers]
 
The manual for this POS device is available here
It seems to me that with all the driver software properly installed, the right way to use this "Control" font would be:

Code:
SET PRINTER TO NAME whateverThePrintersNameIs
SET PRINTER ON
?? "A" FONT "Control"
SET PRINTER OFF

(similar to what was mentioned above, but the VFP docs don't say that the "???" command can take the FONT clause)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top