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