Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing barcode labels to Zebra 90XiIII in VB

Status
Not open for further replies.

rbrady1976

Programmer
Apr 20, 2004
2
0
0
IE
Hi there,
I'm wondering if anyone can help...

I'm trying to print a simple barcode label to the Zebra 90XiIII using VB but the labels keep coming out blank.
Should the code below work?

Thanks,
Ronan

Printer.Font = Printer.Fonts(0)
Printer.Print titleTxt;
Printer.FontSize = 8
Dim HFONT
HFONT = Me.txtBarcode_READ
Printer.Print Spc(2); HFONT
Printer.EndDoc
 
see my FAQ
I found this to work best and can be used with VB or VBA

Use BarOne Lite from Zebra.com to create ZPL
faq694-2608

DougP, MCP, A+
 
Hi again,
Yes i had tried your suggested approach as described in your FAQ. However, i ran into difficulty because the "ZPL" outputted to the file did not look like the "ZPL" you described. In particular, none of it was recognisable as text ... it seems to be in a binary (pixel coords) form of ZPL. ZPL commands are still there but it is just followed by a load of hex. The file can still be used to print using your copy command.
Is there anyway to force bar-one lite to print in the other form of ZPL?

Cheers,
Ronan.

^XA
^MCY
^XZ
^XA
^FWN^CFD,24^PW1228^LH0,0
^CI0^PR2^MNY^MTT^MMT^MD0^JJ0,0^PON^PMN^LRN
^LT0
^XZ
^XA
^MCY
^XZ
^XA
^DFR:TEMP_FMT.ZPL
^LRN

^FO165,103^GFA,09984,09984,00104,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,000000000000000000000000000000
001FFF00000000000000007FFC0000000000000001FFF000000000000FFF80,000000003FFC0000
03FFC003FFC00001FFFFF000000FFF000007FFFFC00000000000001FFFFF0000000000FFFFF800
00007FFFF80000FFFFF000FFFFFFFFFFF00000003FFFFFFFFFFFC03FFFFFFFFFFC03FFF000007F
FE0FFFFFFFFFFFF007FF8001FFE0,000040003FFC000003FFC003FFC00007FFFFFC00000FFF0000
1FFFFFF00000000000007FFFFFC000000007FFFFFE0000007FFFF80000FFFFF000FFFFFFFFFFF0
0000003FFFFFFFFFFFC03FFFFFFFFFFC03FFF000007FFE0FFFFFFFFFFFF007FF8001FFE0,0001C0
003FFC000003FFC003FFC0001FFFFFFF00000FFF00007FFFFFFC000000000001FFFFFFF0000000
1FFFFFFF8000007FFFF80000FFFFF000FFFFFFFFFFF00000003FFFFFFFFFFFC03FFFFFFFFFFC01
FFF80000FFFC0FFFFFFFFFFFF007FF8001FFE0,0003C0003FFC000003FFC003FFC0003FFFFFFF80
000FFF0000FFFFFFFE000000000003FFFFFFF80000003FFFFFFFE000007FFFF80000FFFFF000FF
 
It may be becasue you have one or more fonts that are Windows True Type fonts. The program translates thsoe fonts into binary and it is slower to print.
If you look carefully you will see only a few fonts that are native Zebra fonts in the Fonts list. You need to use these native fonts as you are creating a new entity. You can also edit th eother text entities.
You will have to change all True Type fonts to Zebra native fonts and resize all the text items unfortunately, but it can be done.
Also if you have nay type of Image it will be binary too

DougP, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top