« Updated M42 timing chain tensioner | Main | Labels with Zebra Printers »

August 29, 2005

Printing Barcodes from Oracle Apps

Printing barcodes has always been a challenge from within Oracle Application, specially when printing ASCII only reports.
FOOBAR is a filter style program that generates 3 of 9 barcodes via PCL codes. (FOOBAR was originally developed by Allen-Sauber Consulting.)

Configuration and Setup

You'll need to compile the foobar.c file. Place it on the path so that it's available to Oracle Apps.

Setup a Driver with the following string as Argument (notice the use of the foobar executable as a filter):

cat $PROFILES$.FILENAME | foobar | lp -d$PROFILES$.PRINTER -n$PROFILES$.CONC_COPIES -t"$PROFILES$.TITLE"

Usage

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

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

Where BARCODE is the data to represent as a barcode. Note that the valid values are upper case letters and numbers.

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

Posted by rimblas at August 29, 2005 10:56 AM

Comments

Post a comment




Remember Me?