Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning the contents of a Word document into a memo fi
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00121431
Message ID:
00121436
Vues:
18
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform