One method you should look into and I'll post back an example later is checking 
out the  microsoft's filesystem object.  You could possibly call it as a com 
object in coldfusion.  One example of this can actually be found at:

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00001585.htm

Here they create the object and then the work is done using the com object 
towards the bottom with:
   
1. lets first create the com object to use:
<cfobject type="com"
                  action="Create"
                  class="Word.application"
                  name="Application.MyWordobj"
                  context="local">

2. Now its time to set an instance of the object:
   <cfset docs = application.mywordobj.documents()> 

3. Then we call the open method from the object:
   <cfset docs.open("c:\CFusionMX7\wwwroot\temp.doc")>

4. Then set a new document to create:
   <cfset converteddoc = application.mywordobj.activedocument>

5. Then save as htm: 
   <cfset converteddoc.saveas("c:\CFusionMX7\wwwroot\temp.htm",val(8))>

6. and lastly close the file
   <cfset converteddoc.close()>

Try that hopefully that will work. If not tell me what you decide upon. It may 
be easier to just say the documents as text files first.

-Mike



> > Has anyone done that?  the CFcontent tag is the closest thing pops 
> up, 
> > it does some job but still have tons of garbage.  If possible I 
> prefer 
> > not to use third party bla bla.
> 
> I do not think there is a way to extract text only from a binary Word 
> document without using a third party component such as POI
> http://poi.apache.org/hwpf/ 


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298412
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to