I am using Zebra SDK v2.15.2634 to develop Xamarin.Android application. It looks good until I try to execute following line:
var btAddress = "48:A4:93:89:63:97";
Connection connection = new BluetoothConnection(btAddress);
connection.MaxTimeoutForRead = 30000;
// Successful printed.
//var bytes = Encoding.UTF8.GetBytes("^PON^LH0,0^FWN^XA^FO150,200^FDHelloWorld^FS^XZ");
printer = ZebraPrinterFactory.GetInstance(connection);
Dictionary<int, string> vars = new Dictionary<int, string>
printer.PrintStoredFormat("E:HELLO2.ZPL", vars, "utf-8");
catch (ConnectionException e)
catch (ZebraPrinterLanguageUnknownException e)
catch (Exception e)
The printer showed it got bluetooth activity by flashing the icon on display. But nothing print out.
- Printer model: ZQ520
- Zebra SDK v2.15.2634
- Visual Studio 2019
- There is HELLO2.ZPL file on the printer's flash storage.
- Successfully printed, if I send this file to printer via Printer Tools Program.
- There is no problem with connection, my app can connect to printer successfully.
- I can execute BluetoothConnection.Write() method successfully with printed slip, on following code:
var bytes = Encoding.UTF8.GetBytes("^PON^LH0,0^FWN^XA^FO150,200^FDHelloWorld^FS^XZ");
The stored file is the problem.
- I used both manual created ZPL file and from Zebra Designer 3, both stored on the printer.
- I tried to PrintStoredFormat() with both of them. Nothing happened.
- The code has no exception and the connection was closed successfully.
How to reproduce the project and file I attached:
- Please store "HELLO2.ZPL" (manually created) and GT.ZPL (Zebra Designer generated) on the ZQ520
- Do we have to name file in capital letter before send to printer? for ex. hello2.zpl
- if not, do we still to put its into capital letter when we refer to its path? for ex. printer.PrintStoredFormat("E:HELLO2.ZPL", vars, "utf-8");