Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Automation
Message
From
04/04/2003 02:00:33
 
 
To
03/04/2003 17:34:43
Dick Day
Madison County, Nebraska
Nebraska, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00773611
Message ID:
00773894
Views:
23
Dick

We use the following code (apologies for not knowing how to format the text with HTML!)

lcTempDataSource = 'C:\Temp\Wordmrg.dbf'
lcTempName = 'WordMrg.dbf'
lcConnection = "DSN=FoxPro Files - Word;UID=;PWD=;SourceDB=" + ADDBS(JUSTPATH(lcTempDataSource)) + ";SourceType=DBF;Exclusive=No;BackgroundFetch=No;Collate=MACHINE;Null=Yes;Deleted=Yes;"
lcSelect = "SELECT * FROM " + lcTempName

loWord.ActiveDocument.MailMerge.OpenDataSource( lcTempDataSource, 0, .F.,,.T.,,,,,,, lcConnection, lcSelect)
loWord.ActiveDocument.MailMerge
regards

Ian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform