Has anyone connect to a word document via COM with CF 8 yet?  If so, did
you have any problems with it?  I am trying to connect and it WILL NOT
work.  It is driving me nuts because I do not see any reason why it
should not.  Just doing a simple connect/open file just hangs or I get
an error message saying that the range method was not found.  I need to
know if it is my installation or cf 8 or neither.  I am also using MS
Office 2007.  If anyone has experience with this please let me know.  

 

---OR---

 

Can someone try and run this code on CF 8 Dev with MS Office 2007 and
let me know if it works.  That is what I am using.  So, if someone else
can get it to run fine then it may be my installation of CF or
something.  Just trying to narrow down where the issue is because I know
it is not with the code.  The file I am using is being saved as a 97-03
word doc.

 

<cfscript>   

                objWord=CreateObject("COM", "Word.Application");    

                objDoc = objWord.Documents;    

                wordDoc = objDoc.Open(ExpandPath( "new.doc" ));   

                docRange = wordDoc.Range(0);   

                docText = docRange.Text; 

</cfscript>

<cfdump var="#wordDoc#">

<cfscript>

                 wordDoc.Close();

                 objWord.Quit(); 

</cfscript>

 

Thanks!

Lori

 



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305349
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