Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word mailmerge & free table datasource
Message
From
30/08/2002 03:43:03
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00694965
Message ID:
00695323
Views:
11
Hi,
Do you have latest VFP ODBC driver installed?
The following is the connstr, you may have a try:
lcSQL = "SELECT * FROM mytable"

lcConnStr = "DSN=FoxPro Files - Word;UID=;PWD=;SourceDB=" + ;
            JUSTPATH(lcTablePath)+ ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=MACHINE;Null=Yes;Deleted=Yes"

oWord.ActiveDocument.MailMerge.OpenDataSource (lcTablePath, , , , , , , , , , ,lcConnStr, lcSQL, "")
HTH
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform