House of Fusion
Home of the ColdFusion Community
Hostmysite Dedicated Hosting

Search cf-talk

September 06, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30         

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion 8 & COM objects

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stone, Lori
05/15/2008 01:28 PM

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


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists