Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word mail merge headaches
Message
De
14/07/2005 15:47:43
 
 
À
14/07/2005 09:44:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01032386
Message ID:
01032798
Vues:
14
Is this basically what you did using bookmarks? Obviously, the full code would check for the name of the bookmark but for this test I just referenced the one I knew was there, added the text I wanted after it, then deleted the bookmark.
oword=CREATEOBJECT("word.application")
odocument=oword.Documents.Open("c:\bookmarktest.doc")
obook= odocument.Bookmarks.Item(1)
orange=obook.Range()
orange.InsertAfter("the bookmark that I added")
odocument.Bookmarks.Item(1).Delete
odocument.Save()
odocument.Close()
oword.Quit
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform