Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE in Word 2000
Message
 
À
31/07/2000 15:00:49
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00398935
Message ID:
00398948
Vues:
34
>I was wondering if someone could send me an example of updating a Word 2000 template from VFP 6.0.

Hi:

#DEFINE wdDoNotSaveChanges 0

oWord = CREATEOBJECT("word.application")
oDocument = oWord.Documents.Add("c:\mytemplate.dot")
oDocument.Bookmarks["SomeBookmark"].Range.Text = "Some Text Value"
oDocument.PrintOut()
oDocument.Close(wdDoNotSaveChanges)
oWord.Quit(wdDoNotSaveChanges)

HTH,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform