Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pasting HTML into Word Doc
Message
 
 
To
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:
01368397
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform