Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to break the link in mailmerge
Message
From
15/02/2001 13:49:46
Gary Otte
California Youth Authority
Sacramento, California, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00476351
Message ID:
00476404
Views:
31
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
Previous
Reply
Map
View

Click here to load this message in the networking platform