I'm taking a guess here,

because the MS Word Viewer 2003 exe is wordview.exe and not word.exe, 
wouldn't that change the class in the object call  to wordview.application?

just a shot in the dark..

Chuck Weidler wrote:
> I want to open a MS Word Document (.doc) file and get the contents of the 
> file.  The issue that I'm having is that on our server we have MS Word Viewer 
> 2003 installed and I cannot figure out how to create or connect to this com 
> object.  The code I have works perfectly on the workstation, but I have the 
> regular MS Office 2003 installed.  So locally the creation and connection to 
> winword.exe is great, but on the server I get the following error. The code 
> that creates the object or connects to the existing object is below the 
> error.  Thanks in advance for any help on this issue.
>
> ERROR -
>
> Details:  The cause of this exception was that: java.lang.Exception: Invalid 
> COM object. 
> Message:  An exception occurred when instantiating a COM object.
>
> CODE -
>
> <cflock name="ObjectConnectionCreation" type="exclusive" timeout="120">
>       <cftry>
>               <cfobject type="com"
>                       action="connect"
>                       class="Word.application"
>                       name="MyWordobj"
>                       context="local"> 
>               <cfcatch>
>                       <cfobject type="com"
>                               action="Create"
>                               class="Word.application"
>                               name="MyWordobj"
>                               context="local"> 
>               </cfcatch>
>       </cftry>
>       
>       <cfset mywordobj.visible = False>
> </cflock>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311412
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to