Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Pasting value into word document
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Word Automation - Pasting value into word document
Miscellaneous
Thread ID:
00950390
Message ID:
00950390
Views:
54
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
Next
Reply
Map
View

Click here to load this message in the networking platform