« Printing Barcodes from Oracle Apps | Main | Testing HBlogger »

August 29, 2005

Labels with Zebra Printers

Zebra printers are fairly common, easy to find and easy to use.

However, some Zebra printers require their own escape codes and will not print plain ASCII input.
Expanding on the foobar solution (Printing Barcodes from Oracle Apps), I have created zfoobar.

From Zebra's website:

Zebra offers the industry's broadest range of direct thermal and thermal transfer bar code printers making us the clear choice for all of your bar code label, ticket, and receipt printing needs.

ZFOOBAR is a filter/wrapper that accepts plain ASCII input and recognizes stream indicators. The input is then encapsulated with Zebra escape codes and stream indicators translated. Barcodes are handled just like with the foobar program, via a stream indicator.

Configuration and Setup

You'll need to compile the zfoobar.c file. (Or download zfoobar.zip)

Usage

Zfoobar works by recognizing a stream indicator and making a substitution with the Zebra codes that represent the barcode.

This is the form of the stream:
[ZFOOBAR;DATA=*BARCODE*]

To force a new label a spacial stream indicator needs to be used:
[ZFOOBAR;CMD=NEWLABEL]

Optionally you can have a HEIGHT parameter to specify the height of the barcode:
[ZFOOBAR;HEIGHT=77;DATA=*BARCODE*]

Posted by rimblas at August 29, 2005 03:00 PM

Comments

Post a comment




Remember Me?