I still think you should go using clipboard API functions. See some other samples at
http://www.news2news.com/vfp/?group=6&function=421>This still just pastes unformatted HTML into the Doc...
>
>Can you (or someone) give me the exact syntax on PasteSpecial as it seems to be a bit murky in Tamar's book. When I try it with her syntax chart, it blows up.
>
>My code (copying contents of 'temp.txt' (which is HTML text):
>
>WITH oRange
>.PasteSpecial(0,.f.,0,.f.,10,"temp.txt",.f.)
>
>TIA!
>
>-- John
>
>>>Hey folks...
>>>
>>>I've read and own Tamar's book on Automation, but cannot figure out the PasteSpecial command for inserting HTML into the Word doc so that it reads like HTML. I can get it in, but then it has the brackets, etc.
>>>
>>>Can anyone give me an example of the code it takes to insert it (either via clipboard or some other means)?
>>>
>>>Thanks in advance!
>>
>>See if you can start from
Copy RTF Text to Clipboard
If it's not broken, fix it until it is.
My Blog