Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word mail merge headaches
Message
From
14/07/2005 15:47:43
 
 
To
14/07/2005 09:44:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01032386
Message ID:
01032798
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform