Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting information _out_ of word
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Getting information _out_ of word
Miscellaneous
Thread ID:
00514657
Message ID:
00514657
Views:
32
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
Next
Reply
Map
View

Click here to load this message in the networking platform