is now part of CreativePro.com!

Keeping Long Text Fields on One Line When Using Data Merge

8

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

Eugene Tyson has over 17 years’ experience in the graphic design and print industry. Currently a senior graphic designer and prepress operator, he delivers InDesign training and also works as a consultant for various companies and individuals within Ireland. You can reach him via his dedicated Google+ community for InDesign users in Ireland. You can also follow him on twitter @Euge_Tyson
  • Jacob Deng says:

    thanks
    It’s a nice tip.

  • Mike Perry says:

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

  • Eugene Tyson says:

    You’re welcome Jacob!

    @Mike, he responded well to it.

  • Lukas Engqvist says:

    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 :)

  • Eugene Tyson says:

    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.

  • Ariel says:

    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

  • Eugene Tyson says:

    Beautiful script and totally worth it.

  • Hana Vax says:

    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

  • >