>Hi
>
>I have to create a Word Doc Template. This template is supposed to allow the user to put in predefined fieldnames, names that the VFP automation program expects from this template.
>
>Q1. How and Where to define DocVariables in a template file?
>Q2. How to put these DocVariables (not it's value) in the template file?
One option is to use visible text, and then search for it. Example:
Dear [Name],
We hereby want to express our thanks for your generous donation of $[Amount], for our campaign.
Another option is to use bookmarks. You can create a bookmark in any place of your text, and then give the command to jump to the bookmark.
I am not sure about the VFP commands, but saving a Word macro should give you the basic syntax.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)