Yep ...that's me!!

-----Original Message-----
From: Ken Ketsdever [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 2:38 PM
To: CF-Talk
Subject: RE: MS Word Com problem with CF


Javier,

        Did you graduate from Roseville High School, class of 1980?

Ken Ketsdever
[EMAIL PROTECTED]

Sorry this is OT. 

-----Original Message-----
From: Javier Arroyo [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 2:04 PM
To: CF-Talk
Subject: RE: MS Word Com problem with CF

Well I though about that ...but one of the issues I have is that this
client is going to I load balanced environment, so no telling which one
of the 4 "load balanced" servers we would end up on, if I use
application scope, won't that blow chunks if I end up on server 1 with
an instance then the next person coming in ends up on server 2? 

-----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!!










~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217985
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to