Does anyone know how to print a receipt using Java? I have been looking for Google for a long time. Java POS seems to be a good solution. I'll take a quick look at it and it looks appropriate for the Java printer driver. My printer is cheap, support for ESC, but only a driver for Windows.
I also tried:
FileWriter out = new FileWriter("LPT1");
This does not work,
java.io.FileNotFoundException: lpt1 (The system cannot find the file indicated)
Printing does not work.
Does anyone know how to do this? Thank.
source
share