473,770 Members | 4,544 Online
Bytes | Software Development & Data Engineering Community
+ 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.Exec WB OLECMDID_SAVEAS , OLECMDEXECOPT_P ROMPTUSER, 300, 300

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

Nov 21 '05 #1
4 19474
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******@discu ssions.microsof t.com> wrote in message
news:D6******** *************** ***********@mic rosoft.com...
how to save with only WebBrowser: save html+picture without dialog box?
what I Have is:

WebBrowser.Exec WB OLECMDID_SAVEAS , OLECMDEXECOPT_P ROMPTUSER, 300, 300

I don't want this code.
I want same code like this:
WebBrowserSaveT o("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_P ROMPTUSER, 0, 0

this is not good for me:
Text1.Text = WebBrowser1.Doc ument.documentE lement.OuterHTM L

"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******@discu ssions.microsof t.com> wrote in message
news:D6******** *************** ***********@mic rosoft.com...
how to save with only WebBrowser: save html+picture without dialog box?
what I Have is:

WebBrowser.Exec WB OLECMDID_SAVEAS , OLECMDEXECOPT_P ROMPTUSER, 300, 300

I don't want this code.
I want same code like this:
WebBrowserSaveT o("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_P ROMPTUSER, 0, 0

this is not good for me:
Text1.Text = WebBrowser1.Doc ument.documentE lement.OuterHTM L

"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
12565
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 code to access file1.exe using virtual folder. <@ Language=JavaScript %>
5
6582
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
10802
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 save dialog, hopefully without using vbscript other web pages i have seen have a simple link such as : <a href="someDir/someFile.xls">Download</a> when i used that, it just opens the spreadsheet and actually allows me to use the spreadsheet...
3
10738
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 me to have the option to save the image. I guess I should have seen this coming. On the browser default right click menu there is a "Save Picture As..." option. Does anyone know how I can get that option back, or use another way of saving the...
7
3702
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 are instances where i rewrite the Document.Content and the
2
2462
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? Thanks! JP
0
1466
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 = "somefile.xml"; Response.ContentType = "binary/octet"; Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName + ""); Response.Flush(); Response.Write(file);
6
2698
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 the excel document. When I click save I can save the excel document or when I click open it directly opens in excel. This works fine for all but one machine. On one machine however the dialog prompts to open or save the excel document (e.g....
2
1964
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 if I could put there different file types, like txt, xls... and how... Thanks for helping!
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10057
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10002
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9869
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6676
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.