Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Mail Merge from within VFP
Message
De
20/07/2000 17:07:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00395090
Message ID:
00395113
Vues:
14
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform