Barcode Function for Print Media
uPlan supports adding barcodes for print output. The barcodes are generated on the fly, based on personalized data.
Adding a barcode to your dynamic document is done by creating a Graphic ADOR whose rule expression contains a call to the XMPBarcode function.
The XMPBarcode function takes two mandatory parameters:
-
Name: the name of the barcode
-
String to be encoded: the value that is encoded by the barcode
Example of a static barcode
XMPBarcode ("QRCode","http://www.xmpie.com/udirect")
In this example, QRCode is the name of the barcode and http://www.xmpie.com/udirect is the string to be encoded. This function will generate a QR code barcode that, once scanned, will lead to the http://www.xmpie.com/udirect website.
Example of a dynamic barcode
XMPBarcode("QRCode",“http://www.lioncomm.com/SummerSale/?”)
where ? refers to the XMPieRecipientKey.
In addition to the first two mandatory parameters, you can provide a third parameter that sets up various additional options. The following options are available for further customizing the barcode:
To use a barcode later in your dynamic document, simply place the graphic ADOR in the design, as you would with any graphic ADOR.
More topics
Supported Barcodes and Matching QLingo Parameters
Barcodes with Special Parameters