Barcodes

Prev Next

Exact Forms Plus

Create barcodes in Exact Forms Plus

To have Exact Forms Plus create barcodes in the generated document, you need to use a formula in the Word document template.

Note

This feature is only available in Exact Forms Plus version 11.4 and later. If you're not sure which version you're using, submit a technical support case.

The format of the formula is as follows:

~=barcode(f[99],BCtype,wxh)~

f[99] = field id of the field in the table that holds the data of the barcode

bctype = this is the type of barcode you want to create in the document (add -t or -b to the end for linear barcodes to control text display)

wxh = width and height of the generated barcode

Example:

~=barcode(f[123],qrcode,50x50)~

This example creates a 2D QR Code image in the output document using the data found in field 123 in the master table. The barcode is 50W x 50H.

For Linear barcodes, you can control whether to show the text for the barcode on the top, on the middle, or not at all.

~=barcode(f[123],code39-t,100x50)~—displays text on top
~=barcode(f[123],code39-b,100x50)~—displays text on bottom

~=barcode(f[123],code39,100x50)~—does not display the text at all

You can download a sample barcode document template to test the formulas below.

To test using this template:

  • Create a formula URL field in your table and copy and paste this in the formula code: URLRoot()&"db/"&Dbid()&"?a=dr&rid="&[Record ID#]

  • Download and edit the sample template. Replace the f[258] placeholders in the template with the field id of the URL field you created. Do the same for the other f[999] placeholders, or use other existing fields in your table, or delete any codes in the template you are not interested in.

  • Upload the modified template to your Document Templates table.

  • When running Exact Forms Plus, make sure you reference the record ID# of the new document template record you uploaded.

  • When the document is created, a QR code is generated that displays the record in your table when scanned.

Supported barcodes

Symbol

Type

Supported characters

BCType to use in the template

Length

QR Code


 

2D

[0–9]; [A–Z (upper-case only)]; [space $ % * + - . / , :]; [Shift JIS characters]
 

qrcode

variable
 

DataMatrix


 

2D

All ASCII characters
 

datamatrix


 

Code 39


 

Linear

[0-9]; [A-Z]; [- . $ / + % SPACE]
 

code39

variable
 

Code 39 Extended


 

Linear

[0-9]; [A-Z]; [a-z]
 

code39extended

variable
 

Code 11


 

Linear

[0-9]; [-]
 

code11

variable
 

Codabar


 

Linear

[0-9]; [- $ : / . +]
 

codabar

variable
 

Code 32
 

Linear

[0-9]
 

code32

8
 

Code 93


 

Linear

[0-9]; [A-Z]; [- . $ / + % SPACE]
 

code93

variable
 

Code 93 Extended


 

Linear

All 128 ASCII characters
 

code93extended

variable
 

Code 128


 

Linear

[0-9]; [A-Z]; [NUL (0x00) SOH (0x01) STX (0x02) ETX (0x03) EOT(0x04) ENQ (0x05) ACK (0x06) BEL (0x07) BS (0x08) HT (0x09) LF (0x0A) VT(0x0B) FF (0x0C) CR (0x0D) SO (0x0E) SI (0x0F) DLE (0x10) DC1 (0x11) DC2(0x12) DC3 (0x13) DC4 (0x14) NAK (0x15) SYN (0x16) ETB (0x17) CAN(0x18) EM (0x19) SUB (0x1A) ESC (0x1B) FS (0x1C) GS (0x1D) RS (0x1E) US(0x1F) SPACE (0x20)]; [" ! # $ % & ' ( ) * + , - . / ; < = > ? @ [ / ]^ _ ]
 

code128

variable
 

Code 128A


 

Linear

[0-9]; [A-Z]; [a-z]; [SPACE (0x20) ! " # $ % & ' ( ) * + , - . / :; < = > ? @ [ / ]^ _ ` { | } ~ DEL (•) ]
 

code128a

variable
 

Code 128B


 

Linear

ASCII 00-99(encodes each two digit with one code)
 

code128b

variable
 

PDF417


 

2D

[0-9]; [A-Z]; [a-z]; Mixed; Punctuation; Byte
 

pdf417

variable
 

Ean8


 

Linear

[0-9];
 

ean8

7 or 8
 

Ean13


 

Linear

[0-9];
 

ean13

12 or 13