mailmerge and carriage returns

B

Brian

I am doing some programming with Word, what we are doing
is generating and .txt file with some variables and their
values, then we run this file and the master word document
through some Visual Basic code to get a personalized word
document to display to the user on the web.

The issue I am having is with carriage returns. Is there a
way to have one mergefield be used for a multiline item,
basically is there a way for me to put in a hard carriage
return into the values of a mergefield? In the past we
have just specified the number of mergevariable for each
line item we wanted, but in this case we want to be able
to basically have a dynamic list of line items in one
mergevariable. I hope I explained everything right, anyone
have any insight?
 
P

Peter Jamieson

As long as any text fields containng carriage returns are enclosed in double
quotes Word should be able to cope - however, this may only apply if you are
using specific methods to connect to the text file (e.g. it works with
Word's internal converter and ODBC). If you have double quotes in your text
fields, you will probably need to double them up.

e.g.

k,t1,t2
1,"the
quick","brown
fox"
2,"jumps
over","the
lazy
dog"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top