Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Link With Word Document
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00141086
Message ID:
00141118
Views:
24
>Hello,
> I have access your web page and download some samples.
> But i still looking for the sample which enable me to retrieve the content of word97 document without showing the word97 interface....Do you have this sample or idea???


Try this:

* remove the public references after you test. They are there so you can
* reference from the command window
public lcword,oword
oword=create('word.application')
wrdfile='d:\myfile.doc'
endif
oword.documents.open(wrdfile)
oword.caption='Word97 Example'
oword.Application.Selection.WholeStory
lcword=oword.application.Selection.Text
*toggle visible to .f. to not see, .t. to view
oword.visible=.f.
? lcword
oword.quit
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform