Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to break the link in mailmerge
Message
De
15/02/2001 13:49:46
Gary Otte
California Youth Authority
Sacramento, Californie, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00476351
Message ID:
00476404
Vues:
30
Brenda,
don't know if this helps at all, but I use the following:

goWord = CREATEOBJECT('Word.Application.8') && Open Microsoft Word
goWord.DOCUMENTS.OPEN(THISFORM.LocalDoc) && Open mailmerge document
goWord.ActiveDocument.MailMerge.MainDocumentType = 0 && Set this property to remove any attached data source
goWord.ActiveDocument.MailMerge.OpenDataSource(THISFORM.MergeFile) && Set data source to MailMrge table on local drive
goWord.ActiveDocument.MailMerge.Execute && Do the mailmerge

All mailmerge documents are stored on the server. Before executing the above code to do the mailmerge, the document and data source are copied to the local drive. The 3rd line of code breaks the link and the 4th line reestablishes the data source.

Gary
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform