Re: Saving Webpage using MS Internet Control



http://www.delphidabbler.com/articles.php?article=14
Although the sample code is Delphi, it may help.
Probably you'll have to use a type library and use IPersistStreamInit to
save the full HTML file.

Cristian Amarie


"Abhishek" <abhi_narulkar@xxxxxxxxxxxxxx> wrote in message
news:%23bYo2VbNFHA.580@xxxxxxxxxxxxxxxxxxxxxxx
> Hello,
> I would like to know how can I download html files from the
> internet and save them programmatically. I want to perform
> the task in VBA. Currently I am using Microsoft Internet Controls shipped
> with Internet Explorer and the ExecWB method supported.
> I was able to invoke the saveas dialog using the same, but I would like
> that
> to happen automatically without user intervention.
> Example :
> ie.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER,
> "C:\Temp\Testing.htm"
>
> Another problem is that the resources embedded in the HTML are not
> downloaded using this mechanism.
> I would want a functionality similar to IE SaveAs Option.
> Any guidance would be helpful.
>
> Thanks,
> Abhishek.
>
>
>


.



Relevant Pages

  • Re: getting red x images
    ... Clear the IE cache from IE> Tools> Internet Options> General> Delete files and Delete offline content. ... You receive a script error message when you view the HTML file in a Windows-based program. ... You receive an ActiveX error message when you view the HTML file in a Windows-based program. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Images not displaying
    ... Pictures Are Not Displayed on Web Sites in Internet Explorer ... HTML file on a Windows XP Service Pack 2-based computer ... You receive a script error message when you view the HTML file in a Windows-based ... > I could not get any particular criteria for not displaying the images. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Updating Internet Options using a Script
    ... > internet files with JavaScript to run, ... > Here is a simple html file with JavaScript: ... >> Joe Sodora wrote: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: saving pages
    ... i try saving the yahoo page. ... look in my docs,and it is just the html file. ... Temporary Internet Files ... >Explorer, you may receive the follow error message: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • DOM manipulation crashes with IPersistStreamInit
    ... Dim ips As IPersistStreamInit ... the program which modifies the DOM. ... The problem is that the program crashes at different places when it is ... On another run it successfully processed the .html file where that crash ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)