palanganero
palanganero
hello fblondiau, i discover that it was only the fist 23 characters which does not print. So if you try printing a first line with 23 white characters it will...
I've googled a bit and found that each printer has a code for that, which would have to send the code like this: `escpos.writeLF(chr(27). chr(112). chr(0). chr(100). chr(250));` but there...
i don't have a cash drawer so i cannot try it. But if i could get one i will coment it.
and with this command you are sending the ascii codes?:`escpos.write(27).write(112).write(0).write(100).write(250);`
The code is not needed to open the box as the box opens automatically when printing a ticket
once i do the escpos.close(); it does not print anymore.
with this code it only prints "hola holita": ``` PrintService printService = PrinterOutputStream.getPrintServiceByName("xpos58"); PrinterOutputStream printerOutputStream = new PrinterOutputStream(printService); EscPos escpos = new EscPos(printerOutputStream); escpos.writeLF("Hello Wold"); //escpos.feed(5); escpos.close(); escpos = new...
the main problem i have is that when i print a ticket (after doing escpos.close()) i have to reboot the printer. It happens to me only in linux in usb...
i have ubuntu with PrinterOutputStream. it should be ok.
my problem is that only prints the first time i execute the program. If i run the program again it doesn't print. If i unplug the usb cable and plug...