Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>What is a good way to create form letters in a VFP application and insert data from a table into each letter like a mail merge file?
You could create the form as a word template... then, with OLE create a new word doc, using your form template and fill in the data with automation.
You can indicate field names in the doc by using syntax like...
[FIRSTNAME]
Then, in your automation code you can do the equivlent VBA command of replace [FIRSTNAME] with (myfile.firstname) etc.
BOb
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement