Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pasting HTML into Word Doc
Message
From
17/12/2008 22:50:43
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01368371
Message ID:
01368389
Views:
6
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
-- John Kiernan
"Maybe Amelia Earhart was just stealing the plane".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform