Zebra label Printer - Desktop

Hello, I want to print label to a zebra label printer from XOJO desktop application,
I searched on this topic but did not got the solution.
Please can someone tell me how to print it?

On Windows, you simply install the driver and start drawing. It’s just like any other printer. What OS are you on?

I want it for win, OSX and Linux.
Does it have any EPL code like programming?

[quote=265488:@Akshay Patil]I want it for win, OSX and Linux.
Does it have any EPL code like programming?[/quote]

First thing to do is get a hold of the printer manual, specifically escape codes. Then it should be pretty straightforward.

There were other threads : https://forum.xojo.com/conversations/all?search=zebra

This is a label example. You have to learn the Zebra language.
Put this lines in a text file and send it to zebra printer. That’s all.

^XA
^LH0,0
^PRD^MSY^PF0^FS
^FO40,00^GB765,1105,5,B,0^FS
^FT590,1100^XGE:sgt1.GRF,1,1^FS
^FO585,970^GB3,130,3,B,0^FS
^FT175,1110^XGE:lto.GRF,1,1^FS
^FO175,970^GB3,130,3,B,0^FS
^FO050,1015^A0N80,70^FDECO^FS
^FO40,970^GB765,5,5,B,0^FS
^BY2,3.0^FO150,740^BCN,190,Y,N,N^FD>:ETTL1400000001203793^FS
^FO40,700^GB765,5,5,B,0^FS
^FO630,660^A0N20,30^FD27/04/2016^FS^FO590,640^GB3,63,3,B,0^FS
^FO340,660^A0N20,30^FDPeso : Kg 13,2^FS ^FO265,640^GB3,63,3,B,0^FS
^FO80,660^A0N20,30^FDColli : 1 / 1^FS
^FO40,640^GB765,3,3,B,0^FS
^FO650,595^A0N30,40^FD 1- 1 ^FS
^FO480,595^A0N30,40^FD0067119^FS
^FO300,580^A0N80,70^FDZ ^FS
^FO60,595^A0N20,30^FDProg.1 ^FS
^FO40,570^GB765,5,5,B,0^FS
^FO60,540^A0N20,20^FD ^FS
^FO60,520^A0N20,20^FD ^FS
^FO60,500^A0N20,20^FD ^FS
^FO60,480^A0N20,20^FD ^FS
^FO60,460^A0N20,20^FDORLD LUXURY 2016 (4) ^FS
^FO60,440^A0N20,20^FD [Categ. Z] 2 PACCO VILLAGGI ITALIA/GRECIA 2016 (10) - 1 PACCO RARO W ^FS
^FO40,375^GB765,3,3,B,0^FS
^FO60,325^A0N40,40^FD00146 ROMA ( RM )^FS
^FO60,280^A0N40,40^FDVIA DELLA MAGLIANA 179 A/B ^FS
^FO60,235^A0N40,40^FDGEOMETRIA VIAGGI / CAESAR TOUR ^FS
^FO40,210^GB765,3,3,B,0^FS
^FO490,00^GB310,210,110^FS
^A0N,24,25^FO575,20^CI0^FR^FDLinea destino^FS
^A0N,130,120^FO500,65^CI0^FR^FDRM^FS
^A0N,130,120^FO670,65^CI0^FR^FD11^FS
^A0N,24,25^FO550,185^CI0^FR^FDROMA ^FS
^FO60,165^A0N20,25^FD20017 NewYork^FS
^FO60,135^A0N20,25^FDStarks street 22567 55^FS
^FO60,105^A0N20,25^FDNICOLAUS TOUR SRL ^FS
^FO60,65^A0N20,30^FDMittente :^FS
^FO40,45^GB450,3,3,B,0^FS
^FO220,15^A0N20,30^FDStark Industries l.t.^FS^FO210,00^GB3,48,3,B,0^FS
^FO160,15^A0N20,30^FD220^FS^FO150,00^GB3,48,3,B,0^FS
^FO60,15^A0N20,30^FD019575^FS
^XZ

you could try this process:-

download bartender and the windows driver for your printer.

set the printer driver to go to a text file.

design a label in the graphical designer, put variables in the text fields

like @name @address1 @address2

print the label to the printer and it will go to a text file.

load the textfile into your xojo program as a string

replace the @name placeholders with the actual values

open a serial port or tcp port and write the string.

Same advice for OSX and Linux. Current versions of CUPS come with Zebra drivers including the versions that come with 10.6 and above.

https://km.zebra.com/kb/index?page=content&id=SO7680

http://posim.com/blog/how-to-install-zebra-label-printer-driver-on-mac-osx/

[quote=265510:@Russ Lunn]you could try this process:-

download bartender and the windows driver for your printer.

set the printer driver to go to a text file.

design a label in the graphical designer, put variables in the text fields

like @name @address1 @address2

print the label to the printer and it will go to a text file.

load the textfile into your xojo program as a string

replace the @name placeholders with the actual values

open a serial port or tcp port and write the string.[/quote]

Can you be more specific here please, i`m having same issue, and i try to do that in Windows, for Mac it is simple using cups but on Windows i have no idea how to use it , via that ZebraDesigner it works nice but i need an xojo app to manage all the db and the printing process.

Thanks in advance

Re-add the printer with the Generic Text driver built into Windows and try that.

These days I just write postscript using BWIPP and just print direct to any printer via the Windows driver or cups.

[quote=281077:@Aurelian Negrea]Can you be more specific here please, i`m having same issue, and i try to do that in Windows, for Mac it is simple using cups but on Windows i have no idea how to use it , via that ZebraDesigner it works nice but i need an xojo app to manage all the db and the printing process.

Thanks in advance[/quote]

Once you create a zpl file from the designer

You can setup a generic/text only printer in Windows and print to that.

Or, if your printer has serial or network you can connect directly to it from xojo and write the string.

I’m in the process of moving house and I’ve not got my computer online yet, just the phone, but that’s the basic idea.

[quote=281228:@Russ Lunn]Once you create a zpl file from the designer

You can setup a generic/text only printer in Windows and print to that.

Or, if your printer has serial or network you can connect directly to it from xojo and write the string.

I’m in the process of moving house and I’ve not got my computer online yet, just the phone, but that’s the basic idea.[/quote]

Thanks Russ,

Well so far i have the usb connection only so i guess i could set it up as generic/text printer and try to print directly i guess with the print dialog or other method ?

The funny part is that its a label that has a name which is static, then it has the assetID which is dynamic and then it has the barcode which as well its dynamic, when i create it with barcode designer and i save it as file i see it but unfortunately the barcode part is all weird code there and so far i did not managed to make it work and get the data to be updated via xojo.

I found another way to create the label and then to save it to the printer and use it via zpl code from there but again it prins only the static code and not the dynamic ones and the QR code so still a lot of headache .

I wanted to avoid the Serial part as i`m using windows surface as a pc for flexibility and i wanted not to have many cables around but i will see what i can do .

Thanks again.

If you have any other ideas are more than welcomed

Maybe if you share the printer then you can copy the file to the share using xojo shell ?
Like

copy zpl.txt \\pcname\zebra