Re: Connect/Create com opbject to MS Word Viewer

2008-08-22 Thread Sonny Savage
My guess is that the Viewer would have a different com object name.  I'd
recommend installing the viewer on your workstation and invoking it there.
Otherwise, you'll need to install the full version of Word on the server.
You can't expect consistent results otherwise.

On Fri, Aug 22, 2008 at 10:58 AM, Chuck Weidler [EMAIL PROTECTED]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:311411
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Connect/Create com opbject to MS Word Viewer

2008-08-22 Thread Scott Stewart
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


RE: Connect/Create com opbject to MS Word Viewer

2008-08-22 Thread Weidler, Wilfred C.
 
I have already tried that, but thanks for the suggestion.

Chuck

-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2008 11:24 AM
To: CF-Talk
Subject: Re: Connect/Create com opbject to MS Word Viewer

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


~|
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:311417
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4