Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Printing on Receipt Printer

Hello.

Simple question : may somebody please provide a simple code to understand how to print text from TextArea to small printer used for receips in stores.

I found some code, from offical java sites for printing text. but it dosent work so well for this receipt. the code is for A4 paper printing.
Regards,
Z
How old is the receipt printer? It could be that this might even be a task for ASM if I'm not mistaken.
If you're talking about an actual Receipt Printer, as in specialized hardware, then I doubt that Java libraries alone will provide the requisite functionality for printing. I would recommend checking the manufacturer's website for more information regarding the printer. Post the model here maybe?
If you're talking about a regular old printer, check the Oracle APIs. I'm about to go dig through them.
Edit: is this helpful? http://docs.oracle.com/javase/7/docs/tec...uides/jps/ http://docs.oracle.com/javase/7/docs/tec...OC.fm.html
Those provided link, i read those already, and i use them curently in code.
This one in particular: http://docs.oracle.com/javase/tutorial/u...ttext.html

The printer is brand new, Epslion POS , dont know model, i dont use it, its for small restoraunt. Nothing comercial just some practice work
(Jan 22, 2014 08:41 PM)Ajax1 Wrote:  If you're talking about an actual Receipt Printer, as in specialized hardware, then I doubt that Java libraries alone will provide the requisite functionality for printing. I would recommend checking the manufacturer's website for more information regarding the printer. Post the model here maybe?
If you're talking about a regular old printer, check the Oracle APIs. I'm about to go dig through them.
Edit: is this helpful? http://docs.oracle.com/javase/7/docs/tec...uides/jps/ http://docs.oracle.com/javase/7/docs/tec...OC.fm.html

why would a receipt printer not work for the java api?? its a printer
(Jan 24, 2014 11:03 PM)Colby_ Wrote:  why would a receipt printer not work for the java api?? its a printer

I would think it would require a specialized driver for support, You could always make it work using the JNI Library and possibly coding something in ASM or C to add support yourself, wouldn't be that hard.
Look up point of sale software. There are lots of free options to choose from
(Jul 13, 2016 05:03 PM)weejee Wrote:  Look up point of sale software. There are lots of free options to choose from

Please stop gravedigging.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Will PattersonSep 25, 2021 10:42 PM 4 168 Sep 25, 2021 10:42 PM
Last Post: Able.
[Java] by severosJun 5, 2021 06:30 PM 4 350 Jun 5, 2021 06:30 PM
Last Post: GenericSkid
[Python] by HardStoNJul 14, 2020 08:10 AM 5 318 Jul 14, 2020 08:10 AM
Last Post: Anxuein