New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

How to Create 2D barcodes in InDesign using Fonts

This solution explains how to create a Data Matrix barcode in InDesign using the:
1. IDAutomation Data Matrix Font & Encoder
2. IDAutomation VBA Font Encoder (included with the Data Matrix Fonts)
3. Excel
4. InDesign

A barcode font is a file that displays a barcode in text format.

A font encoder is a formula inside of an add-in, plug-in, or source code that performs a calculation to convert data into a format that the barcode font can understand. After the data passes through the font encoder, it is referred to as encoded data. The IDAutomation VBA Macros is a free font encoder that encodes data for Excel and Access.

THE PROCESS

Because IDAutomation does not have an encoder that works directly in InDesign, use IDAutomation's VBA font encoder to format the data in Excel. Save the file as a CSV and perform a data merge. Select the barcode font. With IDAutomation's tutorial steps, this solution is designed to work with all IDAutomation 2D Font Packages and the Excel Native Generator Font/Font Encoder solution.


Application: Excel, InDesign

12-17-20     3.9 year(s) ago    

  Report Abuse

 

Ben

Best Answer

This InDesign solution picks up after Step 9 of the Data Matrix VBA in Excel solution.

Other 2D VBA solutions:
QR Code VBA Tutorial
PDF417 VBA Tutorial
Aztec VBA Tutorial

1. After installing the package, importing the VBA, and encoding the data, use the SUBSTITUTE function to convert the carriage return CHAR(13) and line feed characters CHAR(10) to visible characters prior to saving the file as a CSV. We need to replace the characters so that the CSV file is able to maintain all encoded data rows.

=SUBSTITUTE(SUBSTITUTE(IDAutomation_DMatrix_FontEncoder(A2),CHAR(13),"_r"),CHAR(10),"_r")
image
NOTE: SUBSTITUTE is used twice to convert the return and the line feed to _r or a character of your choice, preferably a character that is lowercase and will not be displayed in the InDesign report.


2. Save the file as a .csv.
image

3. Open an InDesign project. Select Window - Utilities - Data Merge.
image
image

4. Choose Select Data Source.
image

The encoded data appears as:
image

5. On the left panel of InDesign, drag a text field onto the document.
image

6. Drag the merged source field to the text field.
image

7. Check the Preview check box within the InDesign Data Merge box.

8. Select Edit - Find/Change.
image

9. Select the GREP tab. In the Find what box, enter _r_r or the replacement character used from Excel. In the Change to, enter ~b~k for return and line feed.
Select Change All and choose Done.
image

10. Highlight the encoded data and select the IDAutomation2D font.
image

11. If the barcode has white horizontal lines, modify the spacing.
image
Adjust the spacing until it reaches the desired size square without spacing.

12. The 2D barcode is created.
image



QR Code Font Encoder:
=SUBSTITUTE(SUBSTITUTE(IDAutomation_QRCode_FontEncoder(A2),CHAR(13),"_r"),CHAR(10),"_r")

PDF417 Formula:
=SUBSTITUTE(SUBSTITUTE(IDAutomation_PDF417(A2),CHAR(13),"_r"),CHAR(10),"_r")

Aztec Formula:
=SUBSTITUTE(SUBSTITUTE(EncAztec(A2),CHAR(13),"_r"),CHAR(10),"_r")




Data Matrix Native Excel Font Option
=SUBSTITUTE(SUBSTITUTE(IDAutomation_NXLS_DataMatrix(A2,3),CHAR(13),"_r"),CHAR(10),"_r")

PDF417 Native Excel Font Option
=SUBSTITUTE(SUBSTITUTE(IDAutomation_NXLS_PDF417(A2,3),CHAR(13),"_r"),CHAR(10),"_r")


QR Code Native Excel Font Option
=SUBSTITUTE(SUBSTITUTE(IDAutomation_NXLS_QRCode(A2,3),CHAR(13),"_r"),CHAR(10),"_r")



Posted 3.9 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook