SaveAs with WebBrowser Control

A

Abhishek

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
 
H

Herfried K. Wagner [MVP]

Abhishek said:
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@cpmsftngxa07>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top