Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code to Mail Merge with Word?
Message
From
15/04/2012 17:26:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Code to Mail Merge with Word?
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01541578
Message ID:
01541578
Views:
60
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.

Any suggestions are greatly appreciated!

Thanks,
Martha
Next
Reply
Map
View

Click here to load this message in the networking platform