Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clipboard Format
Message
De
22/05/2003 23:01:30
 
 
À
05/05/2003 01:11:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00784783
Message ID:
00792041
Vues:
19
It turned out API may be avoided if we dump our HTML string to a file and then use Internet Explorer object.
STRTOFILE( htmldesc , "c:\myfragment.htm" )
PUBLIC oie as internetexplorer.application
oIE = createobject( "internetexplorer.application" )

oie.silent = .t.
oIE.Visible = .f.
oIE.Navigate( "c:\myfragment.htm" )
DO WHILE oie.Busy() && Let the page finish navigating
ENDDO
oie.execwb ( 17 ,2 ,0 , 0 ) && select all 
oie.execwb ( 12 ,2 ,0 , 0 ) && Copy to clipboard 
>I presume it should be possible using Windows API to place into clipboard chunk of HTML and set clipboard format as HTML. Could anyone advise a reference to the clipboard samples or just give an example of such API call.
>
>Thank you
>Michael
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform