Keeping Long Text Fields on One Line When Using Data Merge

Using InDesign’s Data Merge features can be tricky at times. Fortunately, there are plenty of good data merge tips here at InDesignSecrets and at Adobe.com. Recently, I came across a trick that I thought was worth sharing. My particular problem was that the text frame wasn’t big enough for a long field in my data merge.

The Problems

You can see the problem in the screenshot below – the text “United States of America” should appear at the bottom of the address. But it’s missing because the text frame is overset.

20150415-datamerge

And in this example, the text “Andrew Young International Boulevard” should appear on one line, not two.

image2

Problems like these can be hard to notice, especially when you’re working with a database of 10,000 addresses! It would be very difficult and time consuming to proof the output and fix any mistakes you find.

Overset Text Reports

InDesign will inform you of overset text, but only after the merge is complete!

From the flyout menu in the Data Merge panel select “Export to PDF.”

Usually your Data Merge will look something like this:

image3

When you export to PDF, InDesign creates a report. If there is overset text, each example is noted.

image4

In this case, the overset happened because my text frame was not large enough. So I need to come up with a solution that fixes the overset text problem and keeps each data field on one line.

InDesign has a great feature to combat this, which was introduced in CS6: Auto-Size.

Using the Auto-Size Text Frame Option

Select the text frame with the Address Fields, and then you can go to Object > Text Frame Options. The third Tab over is called Auto-Size.

In this case, I chose to resize from the top right corner, and selected the option for “No Line Breaks.”

image5

Now all my text frames expand from the top right to fit all the text for each data field on the one line without spilling over to the next.

20150414-datamergeautofit2

Bookmark
Please login to bookmark Close

This article was last modified on July 8, 2021

Comments (8)

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Hana Vax
    March 14, 2016

    i like to ask:

    i have a large list of places. (the listings of a magazine)
    i like to use Data Merge in updating my indesign files
    i have try. and i am keep getting one single place in a page.
    is there a way to have multi places on a pages in one text box. NOT as separate text box?

    i like to have my full list in excel into a design listings pages

  2. Eugene Tyson
    April 15, 2015

    Beautiful script and totally worth it.

  3. April 15, 2015

    If you cannot change the size of the text frames (size restrictions, etc.), and instead need to change the size of the text (to make it all smaller to fit), we have this add-on:

    https://www.id-extras.com/products/fit-text-to-frame

  4. Eugene Tyson
    April 15, 2015

    Thanks Lukas, nice to hear from you, it’s a been a while! Hope you’re well! Good luck with the data merge, sounds like a great project.

  5. Lukas Engqvist
    April 15, 2015

    Nice one Eugene. Did my first data merge in Arabic today. Was a bit funny in excel since excel on Mac wsnt recognizing right to left, but data merge works fine in Arabic as long as world script is enabled. Have not yet tried a mixed data of Latin and Arabic :)

  6. Eugene Tyson
    April 15, 2015

    You’re welcome Jacob!

    @Mike, he responded well to it.

  7. April 15, 2015

    We’re all waiting with baited breath. How did Obama respond to that letter starting, “Tum eatis quidunde sum fuga”?

  8. Jacob Deng
    April 15, 2015

    thanks
    It’s a nice tip.