Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to read word document
Message
 
To
09/04/2007 13:55:29
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01213541
Message ID:
01213543
Views:
9
I do not know why do you want to use COM/DCOM.
To read the content of the doc file and line by line you may use something like this:
oWord=GETOBJECT(,"Word.Application")
?alines(adoc2lines,oWord.ActiveDocument.content.Text)
...
With the above you have the array where each element contains one line of plain text from the document open in Word.

You may need to define exactly what do you mean "line". Lines in Word are not separated with chr(13)/chr(10) as in the plain text.


Good Luck

>hi
>
>I am very much new in COM/DCOM
>
>I like to read a DOC file and put each line as one record in a table.
>
>And how can I the reserve word of the COM object.
>
>Thanking you
>Aritra
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform