Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to read word document
Message
 
À
09/04/2007 13:55:29
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01213541
Message ID:
01213543
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform