View Single Post
  #1 (permalink)  
Old 05-14-2007, 07:21 PM
bkirt bkirt is offline
Member
 
Join Date: May 2007
Posts: 5
bkirt is on a distinguished road
Need help with POS printer
I have a 100% Java POS application. The receipt printer is installed as the default Windows XP printer but on a USB port. I am using the Java Printable interface to print receipts. I insert the needed text, etc into a JLabel and print it. This all works fine. My problem is opening the cash drawer which is attached to the printer. I must send a 0x07 (ASCII BEL character) to the printer which then opens the drawer. For some reason the bel never gets sent.

Is the JLabel removing it? I know it is possible to send it through a Windows printer as there is a test provided with the printer and it works. I have also tried sending the 07 directly to the printer as a Java byte. I have tried opening both the Windows printer name and the USB port as files but that also does not work.

If anyone has an answer, I will forever be in your debt.

Thanks in advance,
Bayless
Reply With Quote
Sponsored Links