General information
Category:
Windows API functions
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only