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:
00121466
Vues:
22
>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?

Thanks! Funny, but I actually thought of that after I went to bed. Initially I was thinking I could just macro a ctrl+v back in the VFP form and then the _cliptext notion came up.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform