Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying text from word to VFP
Message
 
To
09/10/2002 13:18:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00709059
Message ID:
00709683
Views:
26
Dragan,

you´re right. I spoke to soon. I did this ´by hand´ where I copied text from Word into a form with the RTF-controlbox and the text showed up fine in VFP.
I wrote a little program to do the trick but when pasting it (_cliptext) it shows the same problem again. I know the text is present on the clipboard the way it should be but the _cliptext is not returning it properly. If I can only find a way to read the content of the clipboard....than I should be fine.....

Regards,

Ron

>>I have a Word document that contains a table. I need to copy data from this table to Word. Creating a Word instance and moving through the table is no problem. The problem starts when copying data from Word to VFP.
>>I use oWord.selection.copy to copy data to the clipboard. This works because I can use the _cliptext variable in VFP to see what the content is.
>>
>>The problem now is that I need to read the ´exact´ content of the clipboard. I need to do this because I need the rich text content of the cell. This means that using _cliptext is out of the question. How can I read the content of the clipboard (as rtf) so I can store the value in a vfp-variable.
>
>In message #707968 it seemed you got this solved. Have you examined the exact contents of _cliptext? There should be a few API functions which should allow you to access the contents of clipboard in several different formats, and I think (not having really tried it) there are a few functions in VFP (or FoxTools) which allow that.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform