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 Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186623
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54