小编Was*_*bas的帖子

如何设置蓝牙打印的字体大小?

I am writing an application which print ticket receipts.
I have some how written the code to print the receipt but the printer either      
Run Code Online (Sandbox Code Playgroud)

以非常大的字体或非常小的(不可读)字体打印。任何机构都可以向我提供设置格式的代码。

     try {
            //////////this code runs in thread
                    OutputStream os = mBluetoothSocket
                            .getOutputStream();
                    String BILL = "";
                    BILL = BILL
                            + "     *********      ";
                    BILL = BILL+"\n***Invoice No*** \n" +
                            "Muslim Movers\n"
                            +Todays_date+"\n";

                    BILL = BILL + "\n\n";
                    BILL = BILL + "Tickets:" + "      " + String.valueOf(tickets_wanted)+"\n";
                    BILL = BILL + "Price:        "+String.valueOf(Total_Tickets)+"\n"+
                            Selectedroute+"\n";
                    BILL …
Run Code Online (Sandbox Code Playgroud)

printing android bluetooth thermal-printer

5
推荐指数
1
解决办法
4688
查看次数

标签 统计

android ×1

bluetooth ×1

printing ×1

thermal-printer ×1