473,473 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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?

Nov 21 '05 #1
4 19454
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.

"eewwttww" <ee******@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.com...
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?

Nov 21 '05 #2
"Jim Underwood" <ja*************@fallonclinic.com> schrieb:
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.

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

Nov 21 '05 #3
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

"Jim Underwood" wrote:
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.

"eewwttww" <ee******@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.com...
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?


Nov 23 '05 #4
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

"Herfried K. Wagner [MVP]" wrote:
"Jim Underwood" <ja*************@fallonclinic.com> schrieb:
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.

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

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Venkat | last post by:
Hi, I have an file1.exe file stored at some physical location say C:\Test\file1.exe. I created a virtual folder say MyFolder pointing to my physical folder(C:\Test\). I wrote this piece of...
5
by: Shahar Golan | last post by:
In my site I show low quality pictures. When someone right clicks an image and selects 'Save Picture As...', I wish to let him save the high quality picture. I 10Q 4NE IDa.
3
by: bbxrider | last post by:
running win2k adv server/ iis5.0 trying to setup on my web page where browsers can download a file, an .xls so been trying to figure out with a download 'link' what invokes the standard ms file...
3
by: | last post by:
I have an interactive mapping website where there is a main map image. For the map image, I over-rode the default right click menu to provide a popup menu for mapping tools. Now my client has asked...
7
by: joseph.inglis | last post by:
I have a web browser object on a form which I have set to edit mode and use the UCOMIConnectionPointContainer interface to hook in and catch events. All working sweetly. Except there...
2
by: JP | last post by:
I would like to be able to select a location (folder & file name) to save data when I click a button on a web form. Obviously I can't use a "Save Dialog" control on a Web Form. How do I do this? ...
0
by: Bryan Ax | last post by:
Every time I've worked with saving files from the web, I have always used code like the following to force a save dialog where a consumer can choose to open or save the file. string fileName =...
6
by: Michael Groeger | last post by:
Hi, I have an aspx page which generates an excel document and transfers it to the browser as attachment. Normally, once the document is transferred the open save dialog prompts to open or save...
2
by: BeMe | last post by:
Hi, I am using in JS the save dialog: window.document.execCommand('SaveAs', true, "NewFile"); the save dialog appears, but in the combo box of "Save as type" there's only html. I want to know...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.