Zebra printers which support ZBI 2.0 application can make your life much easier.
- You can create stand-alone applications that live in the printer that don't require the printer to be connected to a PC or network. This is a great idea if you have downtimes and you still want to print barcodes.
- You can connect a bar code scanner, weigh scale or other peripheral directly to the printer to provide data for labels.
- You can interface with database applications to format data fields into barcodes or text for label output.
- You can process data input and output from the printer's applicator port.
So what kind barcodes you can print with a Zebra printer?
Linear Bar codes | Two-dimentional bar codes |
|---|---|
|
|
Let's look at it. Lately you can see QR Barcodes in everywhere. Let's create one.
Here is the command that creates a QR Barcode.
^BQa,b,c,d,e
a is the field orientation
b is the model (1 is original, 2 is enhanced which is recommended.
c is the magnification factor (it can be a number from 1 to 10)
d is reliability level (H is ultra-high, Q is high, M is standard, L is high density)
e is character mode (N is numeric, A is alphanumeric, A and M are Data input)
^XA
^FO200,100
^BQN,2,5^FDQA,http://h-savran.blogger.com/^FS
^XZ
Now, we need to send this ZPL (Zebra Printer Language) to the printer. We have to send it directly to the printer. You can use the Zebra's printer status tool to accomplish that. If you are trying to send a ZPL Command to the printer from your code, I am going to share with you a PrintDirect class in future for this purpose. By the way, here is the barcode we just created.
As you can see, you don't need to buy any third party product to create a barcode as long as you have a zebra printer. You can use a stringbuilder to create your ZPL commands and send it to a zebra printer directly to create barcodes.

No comments:
Post a Comment