Data Merge
Data Merge puts your own text above, beside, or below every barcode you save in a batch. You add columns of text, such as a product name, a size, or a lot number, to the file you import into
Set up your file#
- Put the barcode values in the first column.
- If your barcode has an add-on value, such as a price extension, put it in the second column.
- Put each piece of text you want to merge in its own column after those.
- In the first row, type a name for each merge column, such as Product Name or Size. When a file has merge columns, Barcode Producer reads the first row as the column names, not as a barcode value.
- Save it as tab-delimited text (.txt). In Excel, choose Tab Delimited Text (.txt) as the format when you save; the name varies a little between versions.
Add merge fields to your barcode#
A merge field is a column’s name in double brackets, such as [[Size]]. When you run the batch, Barcode Producer replaces each merge field with the text from that column.
- In the symbology editor, click Text in the toolbar.
- Under Custom Additional Text, click New.
- In Text, type a column’s name in double brackets:
[[Size]]. Spaces are dropped from column names, so Product Name becomes[[ProductName]]. You can also type your own words around a merge field:Size: [[Size]]. - Set the font, side, and position, then click OK.
Run the batch#
- Click Automator in the toolbar.
- Click Import Text File… and choose your file. Your merge columns appear in the list, under the names from your first row.
- Choose the Output File Format and File Naming Scheme, then click Generate.
Barcode Producer saves one barcode graphic file for each row of your file. With each saved file, the text from that row appears in place of the merge fields.
If you lay out your labels in InDesign, you can use InDesign’s own Data Merge feature to import the barcode files that Automator saves, along with your text. You can then add more fields and position everything in InDesign itself.