Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet SaveAs function
Message
From
23/10/2002 00:13:31
 
 
To
22/10/2002 23:17:54
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00713746
Message ID:
00714220
Views:
36
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
Map
View

Click here to load this message in the networking platform