Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Mail Merge
Message
De
20/04/2012 18:53:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Mail Merge
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 7
Divers
Thread ID:
01542272
Message ID:
01542272
Vues:
75
I'm having trouble figuring out exactly how to tell Word to open the data for a mail merge. The data file is an Excel spreadsheet.

So far I have...
oWord.ActiveDocument.MailMerge.

...and have tried...
oWord.ActiveDocument.MailMerge.DataSource.Name = m.dir+"data\labels.xls"
oWord.ActiveDocument.MailMerge.OpenDataSource.name=m.dir+"data\labels.xls"
oWord.ActiveDocument.MailMerge.OpenDataSource.DataSource.Name=m.dir+"data\labels.xls"
oWord.ActiveDocument.MailMerge.OpenDataSource.ShowWizard.DataSource.Name=m.dir+"data\labels.xls"
oWord.ActiveDocument.MailMerge.DataSource=m.dir+"data\labels.xls"
oWord.ActiveDocument.MailMerge.OpenDataSource.DataSource.Name=m.dir+"data\labels.xls"

I've been receiving "'Name' not a by reference property" or "parameter not optional".

Sure hope I'm getting close!

Any suggestions are GREATLY appreciated.

Martha
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform