Discussion:
Saving Webpage using MS Internet Control
(too old to reply)
Abhishek
2005-03-30 07:08:23 UTC
Permalink
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.
Jon Kennedy
2005-03-30 22:04:37 UTC
Permalink
For a better, faster response, I would try and post this query to one of the
programming newsgroups - such as:
news://msnews.microsoft.com/microsoft.public.inetsdk.programming.scripting.webbrowser_ctl
news://msnews.microsoft.com/microsoft.public.inetsdk.programming.scripting.vbscript
*news://msnews.microsoft.com/microsoft.public.windows.inetexplorer.ie5.programming.xxxxxx
*news://msnews.microsoft.com/microsoft.public.windows.inetexplorer.ie55.programming.xxxxxx
news://msnews.microsoft.com/microsoft.public.frontpage.programming.vba
*multiple groups in this hierarchy.
--
Jon R. Kennedy
Charlotte, NC, USA
Post by Abhishek
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.
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.
Loading...