Reply
 
Thread Tools Display Modes
  #1   Report Post  
TM360
 
Posts: n/a
Default HTML text in Merge Field

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.

Any help would be greatly appreciated.


  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

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

  #3   Report Post  
TM360
 
Posts: n/a
Default

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-" wrote in message
news:VA.0000b23b.00412ba7@speedy...
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 :-)




  #4   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi Tm360,

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.

Sorry about not responding more promptly; very, very busy at the moment.

Could you send me a small sample data file with this and I'll see what I
can come up with? (I'll also pass it along to MS if I can't come up with a
way to use it, in the hopes it will get corrected in a future version)

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

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I omit an empty date merge field? Phildeman Microsoft Word Help 5 June 13th 05 03:29 PM
INCLUDETEXT File is Determined by Merge Field Clint Marshall Mailmerge 2 June 1st 05 10:16 PM
Word not to insert a merge field if the text or value is 0 markwimbush Mailmerge 1 May 16th 05 07:47 PM
help, problem with text field in word 2003 Salvatore Microsoft Word Help 1 January 21st 05 03:40 PM
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements Mark V Mailmerge 8 November 30th 04 01:31 PM


All times are GMT +1. The time now is 11:30 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"