Hi

I have used WebBrowser control and i want to save the entire webpage
including pictures etc. I am using ExecWB method of WebBrowser control
with OLECMDEXECOPT_DONTPROMPTUSER flag (as in folowing statement)

ie.ExecWB(OLECMDID.OLECMDID_SAVEAS,
OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref Outfile, ref _null);

, but it opens a SaveAs dialog box. Also, if I click on Save, the page
is saved without the images and other resources.

I want automatically save the webpage without using save as dialog box.
Does anybody know how to get this done.
Thanks in advance.

Regards,
Abhishek

Re: SaveAs with WebBrowser Control by Herfried

Herfried
Fri Oct 14 13:12:55 CDT 2005

"Abhishek" <mishra712@gmail.com> schrieb:
> I have used WebBrowser control and i want to save the entire webpage
> including pictures etc. I am using ExecWB method of WebBrowser control
> with OLECMDEXECOPT_DONTPROMPTUSER flag (as in folowing statement)
>
> ie.ExecWB(OLECMDID.OLECMDID_SAVEAS,
> OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref Outfile, ref _null);
>
> , but it opens a SaveAs dialog box.

For security reasons that's not supported since IE4:

<URL:http://groups.google.de/groups?selm=L3yAKK0RCHA.2372%40cpmsftngxa07>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Re: SaveAs with WebBrowser Control by Robbe

Robbe
Fri Oct 14 13:38:51 CDT 2005

You should be able to capture the innerHtml of the document
upon completion of each page load. You can also iterate
through links and images to manage all of this yourself.

This link will point you in the right direction.

http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=967

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net





"Abhishek" <mishra712@gmail.com> wrote in message
news:1129297553.817613.163500@g47g2000cwa.googlegroups.com...
> Hi
>
> I have used WebBrowser control and i want to save the entire webpage
> including pictures etc. I am using ExecWB method of WebBrowser control
> with OLECMDEXECOPT_DONTPROMPTUSER flag (as in folowing statement)
>
> ie.ExecWB(OLECMDID.OLECMDID_SAVEAS,
> OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref Outfile, ref _null);
>
> , but it opens a SaveAs dialog box. Also, if I click on Save, the page
> is saved without the images and other resources.
>
> I want automatically save the webpage without using save as dialog box.
> Does anybody know how to get this done.
> Thanks in advance.
>
> Regards,
> Abhishek
>