0

I have pos58 receipt printer(printer made in China), this printer supports ESC-POS Commands. I want to print out a cheque in Java without JavaPos api. Just I don't know how do this.

Is there some way to implement it? Or what the library is? Or are there any examples of that?

Thanks for advance.

SBotirov
  • 13,872
  • 7
  • 59
  • 81
  • 1
    possible duplicate of http://stackoverflow.com/questions/6278405/connecting-and-printing-to-a-printer-in-java – lakshman Apr 24 '13 at 12:33
  • This is custom printer – SBotirov Apr 24 '13 at 12:37
  • And I want print cheque – SBotirov Apr 24 '13 at 12:39
  • 1
    There are many pos58 receipt printers from various manufacturers. Who is the manufacturer of your printer? This is a link to a pos58 printer programming manual: http://www.sourcecodeprojects.com/1835160/ You will wait a long time for the download. Good luck and let us know how it goes. – Gilbert Le Blanc Apr 24 '13 at 13:09
  • Gilbert I can not download this document. Error:Recently the main download server multiple failures, leading to many download problems of registered members. We are currently upgrading and relocation of the main download server to making download return to normal as soon as possible, sorry. – SBotirov Apr 24 '13 at 14:55
  • Answer [here](http://stackoverflow.com/questions/16189204/how-to-print-a-cheque-through-the-receipt-printer-in-java) Can't close this one because active bounty prevents it. – Glen Best May 02 '13 at 02:58

1 Answers1

2

The easiest way would be to find a way to write a text stream (or even better byte stream) to the printer (this really depends how the printer is connected COM port? USB?)

I have worked with numerous POS printers over the years and once you can get ANY text at all you should find the escape codes to handle the details of paper loading etc quite easy to manage.

Elemental
  • 7,365
  • 2
  • 28
  • 33
  • You can write example this, please or link tutorial – SBotirov Apr 24 '13 at 12:55
  • Start with telling us how the printers are connected. Is your difficulty with sending data to the printer or with handling the POS escape codes? – Elemental Apr 25 '13 at 08:29
  • I don't know how to need connect to receipt printer(For example I have two connected printers(receipt printer and laser printer) in computer, need select receipt printer) and print my cheque via receipt printer. – SBotirov Apr 25 '13 at 12:47
  • @boyfox: Please check Glen's answer below - he seems to link to exactly what you are looking for here (and select his answer for the Bounty) – Elemental May 03 '13 at 12:31
  • I have long seen the answer Elemental. At this answer I do not have. – SBotirov May 03 '13 at 12:40