how to save with only WebBrowser: save html+picture without Dialog

G

Guest

how to save with only WebBrowser: save html+picture without dialog box?
what I Have is:

WebBrowser.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER, 300, 300

I don't want this code.
I want same code like this:
WebBrowserSaveTo("c:\html\1\",htm+pic)
what I can do?
 
J

Jim Underwood

Why are you trying to save something to the user's PC without their
interaction?

By design IE web browsers should not allow this as it puts the users PC at
risk to any number of attacks. I suspect that if it is even possible it
would be an unintentional security hole.
 
H

Herfried K. Wagner [MVP]

Jim Underwood said:
Why are you trying to save something to the user's PC without their
interaction?

By design IE web browsers should not allow this as it puts the users PC at
risk to any number of attacks. I suspect that if it is even possible it
would be an unintentional security hole.

Mhm... I think that it makes sense that an API supports saving the contents
of a WebBrowser control. However, access to this functionality needs to be
protected.
 
G

Guest

how to show the html code that the WebBrowser want to save when he want to
save html+pictures with the "dialogbox" - before saving.
this is the code to open the save "dialogbox"

Me.WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER, 0, 0

this is not good for me:
Text1.Text = WebBrowser1.Document.documentElement.OuterHTML
 
G

Guest

how to show the html code that the WebBrowser want to save when he want to
save html+pictures with the "dialogbox" - before saving.
this is the code to open the save "dialogbox"

Me.WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER, 0, 0

this is not good for me:
Text1.Text = WebBrowser1.Document.documentElement.OuterHTML
 

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