Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need Word 2007 openDataSource help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
I need Word 2007 openDataSource help
Divers
Thread ID:
01332346
Message ID:
01332346
Vues:
70
This is the code I use to TRY to start a mailmerge. I do not want to use wizard to attach data, rather merge data on the fly. I looked at Marcia Atkins white paper but it is a little confusing. Here is the code. Her example shows "Entire Spreadsheet" for the connection parameter. Is that right? I am also getting an error "type mismatch". What am I missing?
oWord=GETOBJECT('','word.application')
oDoc=oWord.Documents.Open("filePath+docName")
oDoc.MailMerge.OpenDataSource("dbfPath+dbfName", 0, 0, 1, 0, "", "", 0, "", "", "Entire Spreadsheet", "", "" )
Extreme Programming = Plan -> Design -> Code -> Test
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform