Results 1 to 1 of 1
- 11-23-2011, 03:11 PM #1Member
- Join Date
- Nov 2011
- Rep Power
POS Machine Using JAVA - How To Open Cash Drawer
I am currently developing a POS machine in JAVA. I am using Epson TM-T88IV Thermal printer to print receipt, an automatic Cash Drawer is connected to the printer via RJ11 port. My question is how to open the cash drawer in java code? the printer manual provided sample codes for opening the drawer but it is written in C#, C++ and .NET languages. One way to open the drawer is by printing the character 'A' using the font "control" provided by the printer driver. I tried this using the code below but still doesn't work.
JTextField jf = new JTextField(); jf.setFont(new Font("control", Font.PLAIN, 10)); jf.setText("A"); jf.print();
I am using JasperReports to design the receipt and then print it using the thermal printer, but i cannot find the font "control" on the font selection. I am using IReport to create and edit my reports.
Please somebody tell me what to do or at least give mo some insights or workaround for this. I will be very grateful.
- By rkraj in forum Java SoftwareReplies: 0Last Post: 02-07-2011, 01:27 PM
- By behzad in forum New To JavaReplies: 3Last Post: 09-01-2010, 08:58 AM
- By Laura 123 in forum New To JavaReplies: 19Last Post: 04-01-2009, 03:56 AM
- By Albert in forum Advanced JavaReplies: 1Last Post: 07-05-2007, 08:48 PM