zaqaqaw / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Cash Draw kick for Epson printers using their 'Control' Font #134

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've got an Epson printer connected to a cash drawer via the printers RJ45 
ports and the cash drawers telephone cord.

I'm using jZebra and want to be able to eject the cash till. With (VB6) code 
and Epsons control font its pretty easy to do this:

Printer.FontName = “control”
Printer.FontSize = 10
Printer.Print “A”

Ref: http://www.beaglehardware.com/howtoprogramcashdrawer.html

I was wondering if you know a way to set the Printers Font?

What version of the product are you using? On what operating system?

I'm using jZebra 1.4.9 on Windows 7

Please provide any additional information below.

I just donated $20, thanks so much for this applet.

Kind regards, 
Jeremy Thompson

Original issue reported on code.google.com by meaningo...@gmail.com on 26 May 2013 at 5:44

GoogleCodeExporter commented 8 years ago
Jeremy,

Here are some useful commands provided by Bahadir.
https://code.google.com/p/jzebra/wiki/ESCPCommands

The mailing list (jzebra-users@googlegroups.com) is probably the best place to 
ask these types of questions.  POS world says the kickout code is: 1B 70 00 40 
F0, however the "00" won't work (it's a limitation of the web browser, not 
jZebra).  You may want to use appendFile() or append64() to bypass this 
limitation.

http://www.posworld.com/epescposcasd.html

-Tres

Original comment by tres.fin...@gmail.com on 28 May 2013 at 2:30

GoogleCodeExporter commented 8 years ago
'\x1B' + '\x70' + '\x30' + '\x19' + '\x19' works for me (for anyone else 
looking to do this...)

Original comment by m...@shust.com on 1 Nov 2013 at 5:54