thilino / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

cut ran first and then print #232

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I did run following code on Epson T20II printer with generic/text driver but 
issue is that cutter ran first and then print receipt.

qz.append("\x1B\x40");
qz.append("\x1B\x70\x30\x19\x19\r"); // open cash drawer
qz.appendImage("http://local1/logo/logo.jpg", "ESCP", "single");
window["qzDoneAppending"] = function() {
   qz.append("                My Company                \r\n");
   qz.append("                 Address                 \r\n");
   qz.append("        Details        \r\n");
   qz.append("           Have a nice day..!!!           \r\n");
   qz.append("\r\n");
   qz.append("\x1D\x56\x41"); // cut paper 
   qz.print();
   window['qzDoneAppending'] = null;
}

What is wrong or what should be correct code for open cash draewer,print 
receipt and then cut the paper ?

Original issue reported on code.google.com by pparesh...@gmail.com on 22 Jan 2015 at 3:13

GoogleCodeExporter commented 8 years ago
> qz.append("\x1D\x56\x41"); // cut paper

Does this command require a newline terminating character?

-Tres

Original comment by tres.fin...@gmail.com on 22 Jan 2015 at 5:03