Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mail Merge Problem
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Mail Merge Problem
Miscellaneous
Thread ID:
00887201
Message ID:
00887201
Views:
73
Hello,

This is my code:

oMW=Createobject("word.application")
oMW.documents.open('Letter.doc')
oDoc = oMW.activedocument
oDoc.mailmerge.execute

When it tries to execute the mail merge I get Ole Dispatch Error: "This method or property not available because the document is not a mail merge main document"

The doc was created in Word 2003, the datasource dbf is correct and the merge fields are in place on the document.

Help!

Many thanks,

Todd
The day you take complete responsibly for yourself, the day you stop making any excuses, thats the day you start to the top. - O.J. Simpson

Great advice from a questionable source...
Reply
Map
View

Click here to load this message in the networking platform