zpl code with VB 2008-20010 - printing

I have code at zpl language ,I need put these code in VB6 to print the Barcode 39 ,when click on the button I need print the code to Zebra Printer as barcode 39 ,The cood is
^XA^CFD^LH0,0^PR6^FS
^FWN^FS
^FX
^FO10,10^A0N,30^FDPART(P)P01529014BL^FS
^FO10,40^BY2,3^B3N,N,50,N,N^FD5HR071D5AE^FS
^FO10,100^A0N,30^FDWD GBOX ASY SE/SXT BLACK^FS
^FO220,130^A0N,35^FDCUS.PART#^FS
^FO420,40^A0N,15^FDMAYCO INTERNATIONAL^FS
^FO10,160^A0N,20^FDSERIL^FS
^FO80,160^A0N,20^FR^SN12345678,1,Y^FS
^PQ1,0,1,Y^FS
^XZ
please if some body print this code in vb6 to Zebra printer can help me to connect this code with vb and print as text because these printer understand just with zpl as text not as graphic
thank you

Related

Can zebra technologies ZTC gc420t EPL print the file which contains ZPL code?

ZPL Code:
Task.txt
^XA
^FO30,390^GFA,8064,8064,32,,:::::::::::::::::::K07VFCM03FC003FE003VFE,K0WFCM07FE007FE003WF,::::::::K0FFCR07FCR07FE003FER03FF,:::::::::K0FFCR07FCW03FER03FF,K0FFC007LFC007FC007FE007FEM03FE003LFE003FF,::::::::K0FFC007LFC007FCW03FE003LFE003FF,K0FFC007LFC007FCR07FE003FE003LFE003FF,:::::::::K0FFC007LFC007FCJ01FF801JFE003FE003LFE003FF,::::::::K0FFCR07FCJ01FF801FF8J03FER03FF,K0FFCR07FCJ01MF8J03FER03FF,::::::::K0FFCR07FCM07FEM03FER03FF,K0WFC007FE007FE007FE003WF,::::::::gK07FE007FE,::::::::::K0MFC007QFE007FE007LFEM03FE,::::::::K0MFC007QFE007FE003LFEM03FE,K0FFC007FCJ01FFK07FE007JF800FF800FF800FF800FF8,::::::::K07FC007FCJ01FFK07FC007JF800FF800FF800FF800FF8,P07FC007FC007FCJ01FF801FF800MF800MF8,:::::::::M01FFK07JF001FF001RF800MF800JFE,M01FFK07JF001FF801RF800MF800KF,M01FFK07JF001FF001RF800MF800KF,:::::::K07JF001RF001MF801MF800MF8,K0KF001RF001MF800MF800MF8,:::::::K0KF001RF801MF801MF800MF8,gK0403JFEM03FEM03JF8,gK07LFEM03FEM03JF8,::::::::gK07FE,K0WFC007FEM07FEM03FEM03FF,::::::::K0FFCR07FC007FE,K0FFCR07FC007LFEM03FEM03JF8,::::::::K0FFCR07FC007FER03FEM03FF,K0FFC007LFC007FC007FEM07FE003FE003FE003FE003FF,::::::::K0FFC007LFC007FC,K0FFC007LFC007FCJ01FF801FF801FF800FF800FF800FF8,K0FFC007LFC007FCJ01FF801FF800FF800FF800FF800FF8,:::::::K0FFC007LFC007FCO01FF800FF800FF800FF8,K0FFC007LFC007FC007FE007JF800MF800JFE003FF,::::::::K0FFCR07FC007FEJ01FF801FF801FF800FFC,K0FFCR07FC007JF801MF800MF800FF8,::::::::K0FFCR07FC007JF801FF801FF800FFC01FF800FFC,K0WFC007JF801FF800MF800PF,:::::::K0WFC007JF801FF801MF800PF,K07VFC007JFI0FF800MF800OFE,,:::::::::::::::::::^FS
^FO30,25^GFA,1512,1512,14,,:::R08,P07FFE,O07JFE,N01LF8,N07LFC,M01NF,M03NF8,M0OFC,L01PF,L03PF8,L07PF8,L0QFC,L0QFE,K01RF,K03RF8,:K07RFC,K07RFE,K0SFE,::J01SFC078,J01SFC001,J01SF80804,J03SFJ01,J03SF01I08,J03RFE02I02,J03RFEK01,J03RFC04J08,J03RF808J04,J03RF808,J03RF01,J03RFM01,J03QFE02,J07QFC04L08,I03RFC04,I07RF808L04,I0SF,003MF01F01F01,003LFE01F03E02M02,007LFE03E03EO02,00MFC07E07C04M02,01MFC07C0F8,01MF80F80F808,03MF01F81F01,03MF01F03F,07LFE03F03E02,07LFE03E07C04,07LFC07C07C,07LF80FC0F808,07LF81F81F81O02,07LF01F01F01O02,07LF03F03E02,07KFE03E03E,07KFC07E07C04O04,07KFC0FC0FC08O04,07KF80F80F8Q08,07KF81F81F01P08,03KF03F03FQ01,03JFE03E03E02,01JFE07E07C04O02,01JFC07C07CQ04,00JFC0FC0F808O08,007IF81F81F8P01,003IF01F01F01O02,001IF03F03E02,I0FFE07E03EP01,I07FE07E07C04N04,I01FC0FC0F808M01,J0F81F80F808M0C,L01F80F00MFE,,::::::::::03C0FF807F8J07F81FE01FF,03C0FFC07FEJ07F81FF01FF8,03C0FFE07FEJ07F81FF81FFC,03C0F3E079FJ07801E7C1F7C,03C0F1E078FJ07801E7C1E3C,03C0F1E078FJ07801C3C1E3C,03C0F3E079EJ07801E781E3C,03C0FFC07FCJ07F01FF81FFC,03C0FFC07FCJ07F01FF01FF8,03C0FFC07FEJ07F01FF01FF,03C0F9E079F07E07801FF01F8,03C0F1E078F07E07801CF01F,03C0F0F078F07E07801CF01E,03C0F1E079FJ07801C781E,03C0FFE07FFJ07F81E781E,03C0FFE07FEJ07F81E7C1E,03C0FF807FCJ07F81E3C1E,01807C003EK03F00C180C,,:::^FS
^CF0,30
^FO490,40^GB310,45,45^FS
^FO500,50^FR^AC^FDPACKING LIST^FS
^CF0,35
^FO30,150^FDAct #: 12345^FS
^FO29,151^FDAct #: 12345^FS
^FO30,178^FDPicker: John Dow^FS
^FO29,179^FDPicker: John Dow^FS
^FO625,150^FDOrder #: 65785^FS
^FO626,151^FDOrder #: 65785^FS
^FO575,178^FDOrder Date: 8/15/17^FS
^FO576,179^FDOrder Date: 8/15/17^FS
^FO30,220^GB755,180,1^FS
^FO400,220^GB1,180,1^FS
^CF0,30
^FO80,250^FDONE STOP TOBACCO, INC^FS
^FO79,251^FDONE STOP TOBACCO, INC^FS
^CF0,30
^FO140,280^FDSamuel Johnson^FS
^FO150,305^FD877.566.6786^FS
^CF0,36
^FO60,360^FDTruck#^FS
^FO59,361^FDTruck#^FS
^CF0,36
^FO133,360^FD:^FS
^CF0,36
^FO150,360^FD102^FS
^CF0,36
^FO240,360^FDStop#^FS
^FO239,361^FDStop#^FS
^CF0,36
^FO303,360^FD:^FS
^CF0,36
^FO323,360^FD02^FS
^CF0,30
^FO420,250^FDShip to:^FS
^FO419,251^FDShip to:^FS
^CF0,30
^FO420,280^FD51w56 South Main Street,^FS
^FO420,310^FDBlock # 14^FS
^FO420,340^FDAtlantic Beach, South Carolina,^FS
^FO420,370^FD89764 - USA^FS
^CF0,55
^FO430,500^FDBOX:^FS
^CF0,200
^FO700,450^FD9^FS
^CF0,30
^FO25,630^GB760,45,45^FS
^FO35,640^FR^FDItem #^FS
^FO145,640^FR^FDDescription^FS
^FO700,640^FR^FDQty^FS
^FO25,670^GB760,460,1^FS
^FO130,670^GB0,460,0^FS
^FO650,670^GB1,460,1^FS
^CF0,35
^FO35,690^FD678998^FS
^FO35,720^FD677868^FS
^FO35,750^FD677848^FS
^FO35,780^FD678888^FS
^FO35,810^FD679838^FS
^FO35,840^FD678588^FS
^CF0,35
^FO150,690^FDDescription 1^FS
^FO150,720^FDDescription 2^FS
^FO150,750^FDDescription 1^FS
^FO150,780^FDDescription 1^FS
^FO150,810^FDDescription 1^FS
^FO150,840^FDDescription 1^FS
^CF0,35
^FO710,690^FD1^FS
^FO710,720^FD2^FS
^FO710,750^FD1^FS
^FO710,780^FD1^FS
^FO710,810^FD1^FS
^FO710,840^FD10^FS
^CF0,30
^FO70,1150^FDHave a Question? Call today: (888) 484-6872^FS
^FO490,1145^FD.^FS
^FO489,1146^FD.^FS
^FO491,1147^FD.^FS
^CF0,30
^FO525,1150^FDwww.usawdistributing.com^FS
^CF0,30
^FO200,1183^FD203 Blount Street, Fayetteville, NC 28301 - USA^FS
^XZ
I have Zebra Technologies ZTC GC420t (EPL) printer connected thorough USB to my Mac.
I have 4 drivers :
Zebra EPL1 label Printer
Zebra EPL2 label Printer
Zebra EPL3 Label Printer
Zebra ZPL label Printer.
I have Selected Zebra ZPL label Printer.
I am new in ZPL.
What should be the extension of file which contains ZPL code?
What should be the proper driver of Zebra ZTC gc420t(EPL) to print ZPL code?
Is it possible that Zebra ZTC GC420t (EPL) can print ZPL code? If yes, then how?
Problem: I wanted the output of my ZPL code like this ZPL Viewer, but I am only getting text, not the output.
Any suggestion will be appreciated.
I believe a .zpl file extension is correct, but I think it should also work with a .txt extension.
Also, you should be able to print ZPL to a ZTC GC420t, because it's product page says that ZPL II is supported on this printer.
Lastly, to send a ZPL file to a printer via USB on a Mac, you have to use the CUPs driver. You can find tutorials on setting it up for a Zebra printer here:
https://www.zebra.com/us/en/support-downloads/knowledge-articles/mac-linux-or-unix-driver-suggestions-for-zebra-printers.html
If you just "Print" the ZPL on the mac, you'll just get a render of the text you're sending regardless of the driver. (but you should use EPL2 or ZPL for best output of a standard "Print") You should be OK to use the OS driver, no need for the CUPS stuff. You just send to the device using command line...
lpr -P <PRINTER_NAME> -o raw <FILENAME.zpl>

How to print Myanmar Unicode in Zebra with using ZPL language?

Everybody
How to print myanmar unicode(myanmar3.TTF) on zebra printer with using zpl language?
I tried to test so many times. i still got problems with zpl code.
here, my code:
^XA^LRN^CI0^XZ
^XA^CWP,E:MYANMAR3.TTF ^FS
^XZ
^XA
^FO10,50^CI28^APN,30,30^FDZebra Technologies^FS
^FO10,100^CI14^APN,30,30^FD- CI 14:ရသာမွန်^FS
^FO010,150^CI33^APN,40,40^FD- CI 33:ရသာမွန် ^FS
^FO010,200^CI34^APN,40,40^FD- CI 34:ရသာမွန် ^FS
^FO010,250^CI35^APN,40,40^FD- CI 35:ရသာမွန် ^FS
^FO010,300^CI36^AMN,40,40^FD- CI 36:ရသာမွန် ^FS
^PA1,1,1,1^FS ^FX Enables Advanced Text ^FS
^FO010,350^CI28^AMN,40,40^FD- CI31:ရသာမွန် ^FS
^PQ1
^XZ
This is my printing out.
How do you communicate with your Zebra printer?
You should be ensured that you send Unicode-encoded text to printer.
For example, if you open Zebra Setup Utilites (Open Communication With Printer) and copy-paste ZPL text to it - it will NOT work.
Try create Unicode encoded text file in your text editor, save it, and then send it to the printer via printer driver (right click on printer -> Print setup -> Tools -> Send file action command)
Also, try to use the ^CI command (see ZPL docs) at the beginnig of the label (just after ^XA, before any other command).
For example, ^CI28 works for UTF-8 encoded texts.
You may try ^CI29 or ^CI30 for UTF-16.

Android ESC/POS protocol printing in Cyrillic

I bought a no-name Android ESC/POS printer, it support Bluetooth. I need help in printing Cyrillic symbols in Windows-1251 charset. What I do first:
\x1B\x40 (ESC # to initialize printer)
\xD5\xD3\xC9\n (the text that I need to print, standard Windows-1251 symbols, but it shows me some abracadabra :))
I should say, that the charset is set to Windows-1251 on the printer (by the exe tool that comes with it)
Also I tried command \x1B\x74\x49 (it sets the Windows-1251 manually, but there is no effect). Any ideas what we can do with it? Thank you all.
You can try my app that print cyrillic text: https://play.google.com/store/apps/details?id=pe.diegoveloper.printerserverapp
Configure your ESC/POS printers on 'Quick Printer' and print from your app.
I tried many variants and after this manual end up with this character code page settings { 27, 116, 9 }
outputStream.write(new byte [] { 27, 116, 9 });
outputStream.write("Привет Мир".getBytes("cp866"));
outputStream.write(PrinterCommands.LF);
Try to convert your text to cp866.
And set code page in printer via ESC/POS command into 17.
With Universal Cyriclic decoder you can find your source encoding/decoding.
Enter in decoded field your output text. For example 袩褉懈胁械褌.
Select source encoding UTF-8.
Then find your wanted decoding charset by selecting field "display as".

Printing Arabic text using ZPL (from iOS)

I am trying to print to Zebra iMZ320
This one prints when saved to a file as UTF 8 encoded and send to the printer using Zebra Utilities
^XA^LRN^CI0^XZ ^XA^CWZ,E:TT0003M_.TTF^FS^XZ ^XA ^PA1,1,1,1^FS ^FO010,610^CI28^AZN,50,40^FD*Arabic: زيبرة^FS ^PQ1 ^XZ
But does not fire from iOS source code directly.
Do I need to do anything else?

Printing Code128 barcode using printer object in vb6 (using font)

We have some ancient vb6 program that creates barcode using printer objects that relies on window fonts, which works fine with code39.
Recently we need to switch the font to code128, after some work we converted the input into code128 format string, and trying print using the same method, however, the printout does not seem right (strange thing is, when we copy the converted string into excel and use the same code 128 font to print it out, it display and print out prefectly)
I was wondering if anyone had the same experience, if so, can anyone shred some lights please?
The following are the code we used to print out barcode
dim sOrg as string
sOrg = "12345888"
printer.fontName = "code39"
printer.print sOrg 'This prints it out perfectly
'However when we change font to code
'this returns Í,BZx}Î which can be copy onto Excel and print out properly
sOrg = convertTo128(sOrg)
printer.fontName = "Code 128"
printer.print sOrg 'print out with part barcode line, part squares
You may use following project which includes VB6 project and open Barcode Font
barcode fonts and encoders

Resources