Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting information _out_ of word
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Getting information _out_ of word
Divers
Thread ID:
00514657
Message ID:
00514657
Vues:
33
Help!! Can anyone tell me how to read information from a table in a word
document? I know how to put the info in, but when I try to reverse
the process by assiging the text value to a variable, it bombs.

Here's my code:Public cAddress



IF NOT USED('BLOCGRAN')
USE BLOCGRAN IN 0 EXCLU
ENDIF
oWord = createobject("word.application")
oDocument = oWord.Documents.Open("h:\kavitha\shap_help_rah_97_99.doc")
oRange = oWord.ActiveDocument.tables[1].Range
oRange = oWord.ActiveDocument.Range()
oRange = oWord.ActiveDocument.Content
cAddress=oWord.ActiveDocument.Tables[1].Rows[1].cells[1].text
Robert J. Ohrstedt
RJO Associates
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform