Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2011
    Posts
    37
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question How to print receipt with receipt printer

    Good day every one,

    I have been looking for a solution to my problem for two weeks and I have not gotten any luck.

    Please can anybody give a clue on how I can print reciept from a reciept printer?

    Am developing a POS application using java and my mojor problem now is how to get my application to work with reciept printer.

  • #2
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    660
    Thanks
    31
    Thanked 100 Times in 94 Posts
    Well your receipt printer should function similar to a typical printer plugged into the computer.

    Your first step should be confirming this. Get your hands on the printer, plug it into your computer, install any needed drivers, and see if you can print to it from an application.

    If so, then all you need to look into is printing in Java. Check out the official documentation here: http://docs.oracle.com/javase/tutori...ing/index.html.

    Otherwise, you'll need to contact the printer's manufacturer as they're probably exists some sort of SDK for use in your application.
    Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
    My posts, comments, code, and suggestions reflect only my personal views.
    Web Portfolio and Code Snippets: http://shanechism.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •