Creating Word template

  • Thread starter Thread starter motupal
  • Start date Start date
M

motupal

Dear All,

I need some sample code to do the following.

1. Open a word document and Create the Mail merge fields
in the document. This has to be done on the fly.

2. Update the Merge Fields with the information in the
XML file.

Save the document.

Thanks for your help.

Regards
Motupal
 
Hi Motupal,
1. Open a word document and Create the Mail merge fields
in the document. This has to be done on the fly.
Record this in a macro in order to get the basic syntax
2. Update the Merge Fields with the information in the
XML file.
Can't be done using merge fields. Mail merge is not able to
link to data in an XML file. If the data must come from
XML, then don't bother with merge fields and mail merge.
You might as well stick with bookmarks and process each
record using code.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
 
Back
Top