Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation - Programatic selection of data source
Message
 
À
27/02/2008 14:29:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01297070
Message ID:
01297080
Vues:
19
>I have some coding for automation between FDP and word. I create a data source, merge the document, etc. Is there any way to code the program to tell word a specific location of a data source to use to merge into the word document template?
oWord = CREATEOBJECT([Word.Application])
oActiveDoc = oWord.Documents.Open([some document])
WITH oActiveDoc.MailMerge
     .MainDocumentType = 0 && Letter if my mind serves me well
     .OpenDataSource([Some other document that should be used as a source for MailMegre],1,.f.)
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform