Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert HTML clipboard fragement to RTF?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Convert HTML clipboard fragement to RTF?
Divers
Thread ID:
00898138
Message ID:
00898138
Vues:
55
Microsoft's apps do something internally when you copy an HTML fragment to the Windows clipboard that I would like to do programatically with VFP. It has to do with placing both an HTML and an RTF rendition of the same fragment of content onto the clipboard. For example, I can indeed programatically use the SetClipboardData API routine with appropriately formatted CF_HTML text to put an HTML fragment on the clipboard. Works fine. However, only applications that recognize "HTML Format" on the clipboard can use it. Outlook Express when authoring a new email works fine. Microsoft Word does not. It seems that some apps, like Word, want to see RTF format on the clipboard. The riddle is this: In Outlook express or wherever MSFT's DHTML editor is behind the scenes, it looks like the copy-to-clipboard function with Ctrl-C will place _both_ the HTML and the RTF version of the _same_ selected fragment on the clipboard. That is, the clipboard will have both data types on it. Is there a quick way to accomplish that programatically if all I have available is the HTML (which I dynamically generate with code)? Thanks.
Répondre
Fil
Voir

Click here to load this message in the networking platform