From 952b5c75b48c88dde4c49e08501a490d39a74bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Wed, 24 Aug 2022 13:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9code=E7=9A=84=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hy/print/hy_printer/PrintAsOrder.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java b/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java index a34f401..faebabb 100644 --- a/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java +++ b/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java @@ -166,6 +166,7 @@ public class PrintAsOrder { try { PrinterHelper.printAreaSize("0", "200", "200", "800", "1"); + //PrinterHelper.Encoding("gb2312"); PrinterHelper.Box("0","10","575","790","3"); @@ -173,13 +174,14 @@ public class PrintAsOrder { PrinterHelper.Line("0", "400", "575", "400", "3"); PrinterHelper.Line("0", "560", "575", "560", "3"); PrinterHelper.Line("380", "360", "540", "200", "3"); - PrinterHelper.Line("333", "160", "333", "400", "3"); + PrinterHelper.Line("333", "160", "333", "400", "3"); PrinterHelper.SetBold("3"); PrinterHelper.SetMag("5","5"); 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, "24", "0", "200", "0", code);