Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Mail Merge from within VFP
Message
From
20/07/2000 17:07:08
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00395090
Message ID:
00395113
Views:
16
Here is a down and dirty way to launch word, open a document, merge it with the datasource,send the resulting merged letters to the printer and close word.

public goWordApp
goWordApp = createobject("Word.Application")
goWordApp.documents.open(settlement.doc)
gowordapp.activedocument.mailmerge.destination = 1
goWordApp.ActiveDocument.MailMerge.Execute
goWordApp.documents.close(wdDoNotSaveChanges)
goWordApp.quit()
release goWordApp

Hope this helps!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform