OK ...I just remembered what my issue was with application scope ....Using the sample here:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/comm on/html/wwhelp.htm?context=ColdFusion_Documentation&file=00001585.htm ...the "second time through" where it tries to connect versus create I get an error: Error Diagnostic Information Error on Invoke for: COM error 0x80010001. Call was rejected by callee. The error occurred while processing an element with a general identifier of (CFSET), occupying document position (44:3) to (44:53) in the template file ...BLAH, BLAH, BLAH, BLAH ....any ideas? -----Original Message----- From: Andy McShane [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 1:38 PM To: CF-Talk Subject: RE: MS Word Com problem with CF What I generally do is to create an instance of word in the application scope. I first check to see if there is an instance already created and if not then I create one. I then use the same instance for all of my calls, I don't create any new instances and I don't end the one I have got, I just have one instance always there. This works fine for me but you will have to try it to see if it suits your needs. -----Original Message----- From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 September 2005 20:51 To: CF-Talk Subject: MS Word Com problem with CF I am having to convert an asp program to CF and one of the functions needed is a server based mailmerge. I have it working in CF, except it creates a Word app on the server EVERYTIME the template is invoked, I'm invoking as: <CFTRY> <CFOBJECT ACTION="CONNECT" CLASS="Word.Application" NAME="WordApp" TYPE="COM"> <CFCATCH> <CFTRY> <CFOBJECT ACTION="CREATE" CLASS="Word.Application" NAME="WordApp" TYPE="COM"> <CFCATCH TYPE="Object"> <FONT COLOR="RED">Error creating word object.</FONT> <CFABORT> </CFCATCH> </CFTRY> </CFCATCH> </CFTRY> then at the end: <cfset x = ActiveDocument.Close()> <cfset x = WordApp.Quit()> The task manager on the server shows that word, after word, after word is beeing created but not "destroyed" ...as a point of reference in the asp app the object is created as: Set WordApp = CreateObject("Word.Application") and I KNOW for a fact the line that "smokes it" out of the task manager is: set wordapp=nothing .........any help would be GREATLY appreciated!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217984 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

