I figured out the issue. So no need to worry yourselves =).
If anyone is interested here is what I had to do.
Instead of using the .Range() method I used the content method to return
all the content to a variable. Then I found it would not kill the
winword.exe process so what I had to do there was initiate the
.application and .activedocument once those were initiated I was able to
kill the process.
Jay
-----Original Message-----
From: Jason Reichenbach
Sent: Wednesday, December 08, 2004 8:23 AM
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 Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186651
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