In my previous post Adding a chart into a Document, I showed you how you can create custom proprietary calculated field to render a live chart. Let’s use the same technique to render a barcode. I will reuse the existing barcode generators from our Reporting Suite.

Field Code:
- BRCODE (BARCODE is a reserved field, Final name TBD).
Switches:
- \t – Specifies the barcode type. Supported barcodes.
- \l – If this switch is set, the eye readable text will be drawn at the bottom of the barcode.
- \w – Specifies the barcode width
- \h – Specifies the barcode height
- \d – Barcode Data
- \p – Barcode specific option. For example for Code128, this switch determines the character set to be used. e.g. \p 128b
- \r – This switch is used by a number of barcode types to determine the density. e.g. \r 2.6
- \c \e \o \k – Barcode specific options. (See note below)
Example:
{BRCODE \t PDF417 \w 300 \h 150 \m text \r 3 \c 1 \p 3 \e 3 \o \l \d "PDF 417"}

Download the source code
Notes:
I should note that even though the techniques I am showing you here open up oh so many possibilities, don’t enable this for your users just yet. Give us some time to sort all the details outs
. And if you are an early adopter, send me an email with your questions, comments and suggestions. Especially if you have an interesting use-case for this.
Cheers
Azret