Re: IPersistStreamInit save vs URLDownloadToFile
- From: "Mike J" <notvalid@xxxxxxxxx>
- Date: Wed, 31 May 2006 20:31:20 +0100
Thanks,
to use .outHTML, the only problem is missing doc type information or other
information before <HTML if to save whole file. such as in XHTML,
<?xml ..>
<!DOCTYPE ...>
<HTML ....
Can we get these <?xml , <!DOCTYPE from IHTMLDocument ?
Mike J
"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:uQvZV1NhGHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
Mike J <notvalid@xxxxxxxxx> wrote:
For saving HTML file to disk, what is the difference between
IPersistStreamInit->Save and URLDownloadToFile except
IPersistStreamInit->Save can clear the dirty flag?
URLDownloadToFile does not require that the URL be loaded into the browser
first. If you load into the browser anyway, then there is no practical
difference.
Also, when I use DOM to change IMG's src, it shows on WebBrowser,
but when I use IPersistStreamInit->Save, it still save original src
of image. It does not save changed DOM properties. How can I save
changes made for the HTML page ?
document.documentElement.outerHTML
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- IPersistStreamInit save vs URLDownloadToFile
- From: Mike J
- Re: IPersistStreamInit save vs URLDownloadToFile
- From: Igor Tandetnik
- IPersistStreamInit save vs URLDownloadToFile
- Prev by Date: Re: IPersistStreamInit save vs URLDownloadToFile
- Previous by thread: Re: IPersistStreamInit save vs URLDownloadToFile
- Index(es):
Relevant Pages
|
|