I need to open cash drawer that connect via printer (Epson TM-U220b).
The Cash Drawer is connect via RJ11 connect to printer. I've to send command to printer with FONT NAME 'control' but it must print a piece a paper every time to open.
I try to send command to open it but it do nothing.
What I do wrong?
- Code: Select all Expand view
*------------------*
Function OpenDrawer
local oFnt, oPrinter
PRINTER oPrinter FROM USER
// DEFINE FONT oFnt NAME 'Courier' SIZE 0, -8 OF oPrinter
DEFINE FONT oFnt NAME 'control' SIZE 0, -8 OF oPrinter
// oPrinter:StartPage()
oPrinter:Say( 1, 1, 'A', oFnt )
ENDPRINT
oFnt:End()
return
Regards,
Dutch