Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet SaveAs function
Message
De
23/10/2002 00:13:31
 
 
À
22/10/2002 23:17:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00713746
Message ID:
00714220
Vues:
37
Hi,

snipped from one of my VB6-projects:

lcName = "d:\temp\" & tcFile & ".Htm"
Dim lopersFile As IPersistFile
Set lopersFile = toThisDoc
Call lopersFile.Save(lcName, False)

Where toThisDoc is a .document of a WebBrowser.
Keep in mind, that for frame-based pages
you will get recursive instances of WebBrowser
as well as the included frames.

IPersistFile is one of the "standard" interfaces
2 levels up from QueryUnknown, which most of the
COM/OLE-able Apps implement to be able to load and save.

Read up on IPersist* in the vc++ docs -
IE implements IPersistFile and IPersistStreamInit.
IPersistStream was somewhere documented to be supported as well,
but that was a doc error.

Since COM-objects can support multiple interfaces,
setting the type of the variable forces VB to
access the .document "through" the interface asked for.

HTH

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform