Where to start or an example for printing BarCode in a iMZ320?

Hi, i am trying to learn how to print BarCodes or QR in a Zebra printer with Link-OS in Xamarin, but i cant find documentation of how to do it, or some examples can anyone give me some guide, example or link? Pleasee

Samantha Corn
Hi Bryan,It sounds like you

Hi Bryan,

It sounds like you've already downloaded the Link-OS SDK. There is a Xamarin app demo included in there that covers connecting to the printer, getting its status, and sending it a print job, among other things. This can be found in the link_os_sdk/xamarin/v1.1.75/demos folder. Full SDK documentation can be found here.

You generate barcodes and QR codes using ZPL or CPCL. Zebra has programming guides for each here and here.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bryan Sanchez
Could you point me to the

Could you point me to the page of the guide (ZPL) where the barcode is generated?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Samantha Corn
Hi Bryan,All the barcode

Hi Bryan,

All the barcode generation commands can be found on pages 45 - 124, depending on what kind of barcode you're looking to generate. Most of the commands show sample ZPL. For a Code 128 barcode, the command and samples are on pages 74 - 83. The QR code command and examples are on pages 103 - 109.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bryan Sanchez
Thanks Sam!.

Thanks Sam!.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Rafael Martinez
Nowadays could you point me

Nowadays could you point me an example for this?, links does not work.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
The links were moved. Here

The links were moved. Here are the links to the ZPL and CPCL guides.

You generate barcodes and QR codes using ZPL or CPCL. Zebra has programming guides for each here and here.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Rafael Martinez
I am currently using those

I am currently using those but I can´t make it work, do you have some code example? I will really appreciate it.

This is my code:

public async Task printBarCode(string code)

        {

            if ((connection != null) && (connection.IsConnected))

            {

                //This is an example of a Code 39 bar code: ^B3

                string zpl = "^XA^FO100,100^BY3^B3N,N,100,Y,N^FD" + code + " ^FS^XZ";

                try

                {

                    connection.Write(Encoding.UTF8.GetBytes(zpl));

                }

                catch (Exception e)

                {

                    await UserDialogs.Instance.AlertAsync("Se dio la siguiente excepción: " + e.Message + ".", "Excepción", "Aceptar");

                }

            }

        }

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Your ZPL code is correct. But

Your ZPL code is correct. But you need to append \r\n to the end to make it work in the application.

"^XA^FO100,100^BY3^B3N,N,100,Y,N^FD" + code + " ^FS^XZ\r\n"

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Rafael Martinez
Thank you very much, it

Thank you very much, it solved my problem.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments