Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pasting HTML into Word Doc
Message
 
 
À
17/12/2008 22:50:43
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01368371
Message ID:
01368397
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform