Results 1 to 1 of 1
- 11-23-2011, 04:11 PM #1
Member
- Join Date
- Nov 2011
- Posts
- 1
- Rep Power
- 0
POS Machine Using JAVA - How To Open Cash Drawer
hi all,
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.
Java Code: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.
thanks. =)
Similar Threads
-
transfering the file from one machine to another machine using ftp in java
By rkraj in forum Java SoftwareReplies: 0Last Post: 02-07-2011, 02:27 PM -
GNU Java Vistual Machine
By behzad in forum New To JavaReplies: 3Last Post: 09-01-2010, 09:58 AM -
Cash Prize Challenge
By Laura 123 in forum New To JavaReplies: 19Last Post: 04-01-2009, 04:56 AM -
Virtual machine of java.
By Albert in forum Advanced JavaReplies: 1Last Post: 07-05-2007, 09:48 PM
Bookmarks