Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print receipt using receipt printer

I am developing a Point Of Sale application, and one of the functionality is to print receipt in a thermal/receipt printer. Currently I have a Datecs DPP-255 printer.

I have no idea where to begin my quest.

I tried search through internet, found out that JavaPOS/UnifiedPOS exists but I couldn't find enough documentation to get me started. Please shed some light.

like image 264
Yunus Einsteinium Avatar asked Aug 18 '15 11:08

Yunus Einsteinium


People also ask

Can thermal printer print receipt?

Thermal printers offer convenience in printing labels, receipts and bar codes quickly and cost effectively in a set location or on the go.

How Does receipt printer work?

The answer's pretty straightforward really, card machines print receipts thermally. Thermal printing doesn't require ink, but instead, it uses chemically treated paper that blackens when it passes under the thermal printhead. So the printhead heats up, the paper passes through, and the writing is transferred onto it.

Can a normal printer print on receipt paper?

Using thermal paper in a regular printer is not advisable. Thermal paper is designed to work in thermal printers, which use heat instead of ink. It is also thinner and more slippery. Thus, a regular printer would probably not produce good results.


1 Answers

Here is an open source project for testing, that may also be used as a reference on how to program using JavaPOS (source code available):

  • JavaPOS POSTest 2 - a JavaPOS application for testing JavaPOS devices (source code is here).

Also here are some projects hosted on GitHub (see the source code to get the idea and to play with):

  • JavaPOS
  • POSdeviceSimulator
  • POStest

Related links:


NOTE:
in order to utilize JavaPOS (which is now a part of the UnifiedPOS specification, see Appendix B), the producer of your Datecs DPP-255 device must provide the related drivers. Are they provided? JavaPOS - is a specification, so accordingly there must be some implementation of it.

like image 52
informatik01 Avatar answered Sep 17 '22 00:09

informatik01