• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help with POS printer

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
    Bookmark Topic Watch Topic
  • New Topic