Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Office Automation
Message
From
04/04/2003 06:38:58
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00773611
Message ID:
00773927
Views:
14
Ian:

Just enclose your code witin < PRE > and < /PRE > tags (without spaces around the brackets)


>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


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform