Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Programatic selection of data source
Message
 
To
27/02/2008 14:29:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01297070
Message ID:
01297080
Views:
18
>I have some coding for automation between FDP and word. I create a data source, merge the document, etc. Is there any way to code the program to tell word a specific location of a data source to use to merge into the word document template?
oWord = CREATEOBJECT([Word.Application])
oActiveDoc = oWord.Documents.Open([some document])
WITH oActiveDoc.MailMerge
     .MainDocumentType = 0 && Letter if my mind serves me well
     .OpenDataSource([Some other document that should be used as a source for MailMegre],1,.f.)
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform