I am trying to use mail merge using COM in Coldfusion MX. I keep getting this error.
I think my word document is setup as a Mail Merge document. I have connected it to my SQL databse. And have the mail merge fields setup. I have checked it in Word and seems to work. Does anyone know whats going on? Why do i Keep getting this error? Thanks a lot guys.
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 not a mail merge main document. 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 databse. And have the mail merge fields setup. I have checked it in Word and seems to work. Does anyone know whats going on? Why do i Keep getting this error? Thanks a lot guys.