Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code to Mail Merge with Word?
Message
From
16/04/2012 08:33:17
 
 
To
15/04/2012 17:26:31
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01541578
Message ID:
01541619
Views:
42
>Hello All,
>
>I have a mail merge document in Word and have created the Excel file that feeds it.
>
>Once I have the document open in Word
> oleApp = Createobject("Word.Application")
> With oleApp
> .DisplayAlerts = .F.
> .Visible=.T.
> .Documents.Open(m.dir+"GUESTLABELS.DOC")
>
>I can't seem to get the code to work to tell it to merge the document and print.

Mail merge is covered in this paper on my website: http://tomorrowssolutionsllc.com/Materials/AutomatingWord.html

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform