Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation - Pasting value into word document
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Automation - Pasting value into word document
Divers
Thread ID:
00950390
Message ID:
00950390
Vues:
55
Is it possible to automate the pasting (Ctrl-V) into a word document that is opened in the backgroud? I have a variable that is mostly composed of HTML text that is built for the a dozen different queries into other systems. I can print straight from my htmlcontrol on the form (mswebcontrol) but it's printing of course sucks. But pasting it into a word document format's it nice and neat. But I can't find a way to automate the pasting.

Thanks for any help
ox=CREATEOBJECT("Word.Application")
lcDocumentText=[ This is a large string value of HTML stuff]
_ClipText=lcDocumentText
ox.Documents.Add
* How to the value of _Cliptext into the word document?
ox.Print
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform