Re: HTML text in Merge Field

Tech-Archive recommends: Speed Up your PC by fixing your registry



Actually the field's content is in quotes. And it's weird. It isn't a
problem if HTML elements other than <HTML> are included.


"Cindy M -WordMVP-" <C.Meister-C@xxxxxxxxxx> wrote in message
news:VA.0000b23b.00412ba7@xxxxxxxxx
> Hi Tm360,
>
> How about if you put each field's content into "quotes"? I'd be surprised
> if
> Word balks at something like "HTML inside of quotes".
>
>> Our application uses Word to do Mail Merges. The datasource is a tab
>> delimited text file that is generated from data in the database. We do
>> nothing to specify what the merge field delimiter is. Word normally
>> recognizes that it is a tab and it all works fine.
>>
>> The problem happens when this text is included in the data that is merged
>> into one of the merge fields - <HTML>.
>>
>> If <HTML> is included in the data that is merged, Word pops up the Select
>> Delimiter dialog box. This is not acceptable as the application that
>> does
>> the merges runs unattended. I also can't seem to get the merge to work
>> even
>> if I specify the correct delimiters (tab for the fields and return for
>> the
>> records).
>>
>> Has anyone else encountered this? Anybody know of a solution?
>>
>> Note that it doesn't seem to be a problem if there are other HTML
>> elements
>> in the merge. For example there can be <b>, <br>, <a href...> and so on.
>> These don't cause a problem. Just <HTML>.
>>
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply
> in the newsgroup and not by e-mail :-)
>
>


.



Relevant Pages

  • Re: HTML text in Merge Field
    ... Word balks at something like "HTML inside of quotes". ... > nothing to specify what the merge field delimiter is. ... > recognizes that it is a tab and it all works fine. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: nesting JS in echos
    ... converted from html to php. ... syntax of the single quotes and double quotes needed in the ... There is no indication this is XHTML. ...
    (comp.lang.php)
  • Re: nesting JS in echos
    ... converted from html to php. ... syntax of the single quotes and double quotes needed in the ... There is no indication this is XHTML. ...
    (comp.lang.php)
  • Re: nesting JS in echos
    ... converted from html to php. ... syntax of the single quotes and double quotes needed in the ... You shouldn't use XHTML for web pages - it's not well supported by some browser, not the least being IE 6 and 7. ...
    (comp.lang.php)
  • Re: nesting JS in echos
    ... converted from html to php. ... syntax of the single quotes and double quotes needed in the ... There is no indication this is XHTML. ...
    (comp.lang.php)