Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro and Microsoft Word
Message
 
À
06/09/2002 10:24:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00697509
Message ID:
00697595
Vues:
10
>Hi All,
>
>I am wondering if anyone can help.
>
>I have a mail merge word template into which I want to pass in a text file automatically from foxpro.
>
>Does anyone know how I can do this through Foxpro, bascially I have the text file in a variable and I want to invoke a word template that will look at my text file.
>
>Cheers
>Mark

Something like:
oWord = CREATEOBJECT("Word.Application")
oWord.documents.open(template_name)
lc="YOUR TEXT go here"
oWord.activedocument.content.insertafter(lc)
*or if you want to insert txt file:
oWord.Selection.InsertFile("c:\fileName.txt")
.............
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform