Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Merge COM error

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
I am trying to use mail merge using COM in Coldfusion MX. I keep getting this error.

Code:
An exception occurred when executing a Com method.  
The cause of this exception was that: AutomationException: 0x800a11fd - This method or property is not available because the document is [b]not a mail merge main document[/b]. in 'Microsoft Word'.  

58 :     /* Execute the mail merge */
59 :     /* This method returns a document object to the documents collection */
60 :     objMailMerge.Execute();

I think my word document is setup as a Mail Merge document. I have connected it to my SQL Server databse. And have the mail merge fields setup. I have checked it in Word and seems to work. How do I check if its actually a mail merge document?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top