更改code的打印方法

master
章文轩 2 years ago
parent da66b76e8d
commit 952b5c75b4

@ -166,6 +166,7 @@ public class PrintAsOrder {
try { try {
PrinterHelper.printAreaSize("0", "200", "200", "800", "1"); PrinterHelper.printAreaSize("0", "200", "200", "800", "1");
//PrinterHelper.Encoding("gb2312");
PrinterHelper.Box("0","10","575","790","3"); PrinterHelper.Box("0","10","575","790","3");
@ -178,8 +179,9 @@ public class PrintAsOrder {
PrinterHelper.SetBold("3"); PrinterHelper.SetBold("3");
PrinterHelper.SetMag("5","5"); PrinterHelper.SetMag("5","5");
PrinterHelper.Align(PrinterHelper.CENTER); PrinterHelper.Align(PrinterHelper.CENTER);
PrinterHelper.Text(PrinterHelper.TEXT, "1", "0", "0", "55", code);
//PrinterHelper.Text(PrinterHelper.TEXT, "55", "0", "0", "55", code);
PrinterHelper.PrintTextCPCL(PrinterHelper.TEXT,60,"0","55",code,1,false,0);
// PrinterHelper.Text(PrinterHelper.TEXT, "50", "0", "100", "0", code); // PrinterHelper.Text(PrinterHelper.TEXT, "50", "0", "100", "0", code);
// PrinterHelper.Text(PrinterHelper.TEXT, "24", "0", "200", "0", code); // PrinterHelper.Text(PrinterHelper.TEXT, "24", "0", "200", "0", code);

Loading…
Cancel
Save