Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning the contents of a Word document into a memo fi
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00121431
Message ID:
00121436
Views:
19
Hi John,

Actually it is very easy. Simply copy the contents to the clipboard from word and the imformation will be available in _CLIPTEXT variable. You could then replace your memo contents with _CLIPTEXT.

oWordObj = CREATE("Word.Application")
....
oWordObj.Selection.WholeStory
oWordObj.Selection.Copy

SELECT YourTable
REPLACE YourField WITH _CLIPTEXT


>It may be late and I'm just not thinking clearly, but I have appropriated the code from VFP 6's samples that show a form imbedding Word, placing some text in and formatting. That's great, but how do you take the contents of a memo field,send it to Word, let it spellcheck/grammar check and then (here's the biggie) return the changes to the memo field?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform