Is my code sending a continuation code?



Here is my code.

var deviceAddress = _preferences.GetBluetoothDevice();

var result = new PrintResult();
if (string.IsNullOrEmpty(deviceAddress))
result.Result = PrintResultTypes.PrinterNotFound;
return Task.FromResult(result);

var connectionFactory = ZebraPrinterFactory
.GetInstance(PrinterLanguage.ZPL, ConnectionBuilder.Build($"BT:{deviceAddress}"));

if (connectionFactory.Connection?.Connected == true)

return Task.FromResult(result);

On the "connectionFactory.Connection.Write(Encoding.UTF8.GetBytes(text));", text is an zpl code like this.


^FX Tabela de dados
^FX Box externo da etiqueta

^FX Linha divisória horizontal Cidade/Cliente

^FX Linha divisória horizontal Cliente/Chassi

^FX Linha divisória vertical Cidade/Minuta

^FX Linha divisória vertical Chassi/NF

^FX Títulos dos boxes
^FT770,190,1^A0L,017,019^FDNota Fiscal^FS

^FX Dados da etiqueta

^FX Barcode


When we send this code to an zebra printer ZQ520, it prints the label correctlly, but the printer does not "finish" the label correctly.
Our labels are "media gap" type and after printer, the label stops around 3mm before the gap. (see the attached image)

We think it could be two options:
1: There is a misconfiguration on printer, or label.
2: The c# code is sending a command of countinuous printing, and it is changing the Gap Mode.

My question.

Is this code Ok?
Is there any change that need to be done?

Thanks a lot!!!

Alexander Palchikov
Hello Jedielson,It looks like

Hello Jedielson,

It looks like your ZPL code has incorrect sizes somewhere. I think the issue is related to ZPL code only.
I don’t know the size of your labels. You can try to debug your ZPL code using online viewer: ZPL Viewer

Alexander Palchikov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

Vote up!
Vote down!

Points: 0

You voted ‘up’

Jedielson Nakon...
Hi Alexander.

Hi Alexander.

Thanks for your answer.
In fact, the problem was with hardware configuration.


Vote up!
Vote down!

Points: 0

You voted ‘up’

Log in to post comments