Cutting Command HPRT Printer with JAVA

0

Dear good afternoon, I have a hard time printing tickets with my POS printer. The ticket prints it normally but I do not know how I could make it cut at the end of the printing, this is the java code I'm using.

private String contentTicket = "::"+(char)27+(char)112+(char)0+(char)10+(char)100+"ACCESORIOS   {{nameLocal}}::\n"+
"Periban. Mich. {{dateTime}}\n"+
//”EXPEDIDO EN: {{expedition}}\n”+
"Emiliano Zapata Col. Centro \n"+
"=============================\n"+
// “Periban. Mich. {{dateTime}}\n”+
//”RFC: XAXX010101000\n”+
//”Caja # {{box}} \n”+
"Ticket # {{ticket}}\n"+
"LE ATENDIO: {{cajero}}\n"+
//”{{dateTime}}\n”+
"=============================\n"+
"{{items}}\n"+
"=============================\n"+
"SUBTOTAL: {{subTotal}}\n"+
"IVA: {{tax}}\n"+
"TOTAL: {{total}}\n\n"+
//”RECIBIDO: {{recibo}}\n”+
//”CAMBIO: {{change}}\n\n”+
"=============================\n"+
"GRACIAS POR SU COMPRA…\n"+
"ESPERAMOS SU VISITA NUEVAMENTE\n"
+ "\t::{{nameLocal}}::\n"+
"\n"
+ "\n\n\n "+cutPaper;

What I want to know is how to put the ASCII code to be able to cut the sheet correctly.

I would appreciate your help. Thanks.

    
asked by Jcastillo 06.11.2018 в 21:32
source

0 answers