Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement