Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word merge from VFP
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00405679
Message ID:
00405885
Views:
17
Figured out my first problem. Just had too many parameters listed. This is what is working now:

lcPath = JUSTPATH(tDataSource)

loActiveDoc.MailMerge.OpenDataSource(tDataSource,,.F.,.F.,.T.,.F.,"","",.F.,"","", ;
"DSN=Foxpro Files - Word;SourceDB="+lcPath+";SourceType=DBF;Exclusive=Yes;Null=No;Deleted=No", "SELECT * FROM "+tDataSource)

Still would like to know how to verify ODBC version and add DSN on the fly if doesn't exist though.


- Randy
Randy Jean
Orion Group Software Engineers
Previous
Reply
Map
View

Click here to load this message in the networking platform