B
blabore
I have a Visual Basic .Net applicaiton that is used to setup mail merge
fields in a word document. Basically, the app creates menus in Word that
allow a user to insert mail merge fields, then when the user saves the
document, it records what mail merge fields where used, so a corresponding
data document can be created for the letter. My problem is that somehow the
mail merge fields that appear within a text box are missing when I iterate
through the mail merge fields collection (i.e. MyDocument.MailMerge.Fields).
You can reproduce the problem by creating a blank mail merge letter,
inserting a text box into the document, then put one or more mail merge
fields inside of the text box. The MailMerge.Fields.Count will remain 0. This
is a problem because when I later try to actually merge the document, Word
informs me that these fields are not in my data document. Is this a bug in
Word, or is there another set of Mail Merge fields I need to look for? Any
help would be appreciated.
fields in a word document. Basically, the app creates menus in Word that
allow a user to insert mail merge fields, then when the user saves the
document, it records what mail merge fields where used, so a corresponding
data document can be created for the letter. My problem is that somehow the
mail merge fields that appear within a text box are missing when I iterate
through the mail merge fields collection (i.e. MyDocument.MailMerge.Fields).
You can reproduce the problem by creating a blank mail merge letter,
inserting a text box into the document, then put one or more mail merge
fields inside of the text box. The MailMerge.Fields.Count will remain 0. This
is a problem because when I later try to actually merge the document, Word
informs me that these fields are not in my data document. Is this a bug in
Word, or is there another set of Mail Merge fields I need to look for? Any
help would be appreciated.