Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office Automation
Message
De
04/04/2003 06:38:58
 
 
À
04/04/2003 02:00:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00773611
Message ID:
00773927
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform