Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need Word 2007 openDataSource help
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
I need Word 2007 openDataSource help
Miscellaneous
Thread ID:
01332346
Message ID:
01332346
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform