Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE in Word 2000
Message
 
 
To
31/07/2000 15:00:49
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00398935
Message ID:
00398948
Views:
28
>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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform