Have you looked into the COM object for 2003? Maybe the methods have
changed.



-----Original Message-----
From: Jason Reichenbach [mailto:[EMAIL PROTECTED] 
Sent: 08 December 2004 13:23
To: CF-Talk
Subject: word 2003 and CF

Has anyone used CF5 to access MS Word 2003 objects? All was fine with
2000, but now none of the properties seem to work.  
 
The following example results in the Range, Close and Count
properties/methods not being found:  

<CFOBJECT TYPE="COM" 
NAME="objWord"
CLASS="Word.Application" 
ACTION="Create"> 

<CFSCRIPT>
 /* This returns the 'Documents' collection of the Word object */ objDoc
= objWord.Documents; /* Specify a document to open */ newDoc =
objDoc.open("c:\jellystone\tempdir\bs7.txt");
actDoc = newDoc.application;
objActDoc = actDoc.ActiveDocument;
objWords = objActDoc.Paragraphs;
docRange = objWords.Range();
docRangeText = docRange.Text;
/* Close Object actDoc.Close();*/
/* Quit Word */
objWord.Quit();
writeoutput("Here we are:"&objWords.count); </CFSCRIPT>  

Any Help would be greatly appreciated.

Thanks,

Jay Reichenbach
Senior Product Developer
OpenHire, Inc.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186633
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