473,382 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Disable File Download Window

gb
hi,

i placed System.Windows.Forms.WebBrowser in my
WinForm. When i tried loading word document, it opens
the File Download window. My question is how can i avoid
the File Download window from showing? My intented
default action is to always open Open file, just like if
i load image, text file or xml file where it does not
show the File Download dialog. I dont want to override
user preference to always show File Download window.
thanks a lot!

gb
Nov 16 '05 #1
4 4208
key

"gb" <an*******@nospam.com>
??????:11*****************************@phx.gbl...
hi,

i placed System.Windows.Forms.WebBrowser in my
WinForm. When i tried loading word document, it opens
the File Download window. My question is how can i avoid
the File Download window from showing? My intented
default action is to always open Open file, just like if
i load image, text file or xml file where it does not
show the File Download dialog. I dont want to override
user preference to always show File Download window.
thanks a lot!

gb

Nov 16 '05 #2
gb,

I think that the problem here is that there is no mime information that
is coming along with the file when you open it from the local file system.
When you make a request from the local file system, it just opens the
contents of the file, and presents an option based on a guess. When you
request this information from the web, mime headers are attached, which add
extra information about the content, and how it is to be handled.

You might have to deal with it, or, you would have to create your own
active document host (which, coincidentally, one will be included in the
next release of .NET).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gb" <an*******@nospam.com> wrote in message
news:11*****************************@phx.gbl...
hi,

i placed System.Windows.Forms.WebBrowser in my
WinForm. When i tried loading word document, it opens
the File Download window. My question is how can i avoid
the File Download window from showing? My intented
default action is to always open Open file, just like if
i load image, text file or xml file where it does not
show the File Download dialog. I dont want to override
user preference to always show File Download window.
thanks a lot!

gb

Nov 16 '05 #3
gb
nicholas,

thanks for the reply. just a question, are you
referring to .Net 2.0 with regards to active document
host? thanks a lot

gb
-----Original Message-----
gb,

I think that the problem here is that there is no mime information thatis coming along with the file when you open it from the local file system.When you make a request from the local file system, it just opens thecontents of the file, and presents an option based on a guess. When yourequest this information from the web, mime headers are attached, which addextra information about the content, and how it is to be handled.
You might have to deal with it, or, you would have to create your ownactive document host (which, coincidentally, one will be included in thenext release of .NET).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gb" <an*******@nospam.com> wrote in message
news:11*****************************@phx.gbl...
hi,

i placed System.Windows.Forms.WebBrowser in my
WinForm. When i tried loading word document, it opens
the File Download window. My question is how can i avoid the File Download window from showing? My intented
default action is to always open Open file, just like if i load image, text file or xml file where it does not
show the File Download dialog. I dont want to override
user preference to always show File Download window.
thanks a lot!

gb

.

Nov 16 '05 #4
gb,

Yes, I am. If you need it now, then you might be better off creating
your own active document host.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gb" <an*******@discussions.microsoft.com> wrote in message
news:11*****************************@phx.gbl...
nicholas,

thanks for the reply. just a question, are you
referring to .Net 2.0 with regards to active document
host? thanks a lot

gb
-----Original Message-----
gb,

I think that the problem here is that there is no

mime information that
is coming along with the file when you open it from the

local file system.
When you make a request from the local file system, it

just opens the
contents of the file, and presents an option based on a

guess. When you
request this information from the web, mime headers are

attached, which add
extra information about the content, and how it is to be

handled.

You might have to deal with it, or, you would have

to create your own
active document host (which, coincidentally, one will be

included in the
next release of .NET).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gb" <an*******@nospam.com> wrote in message
news:11*****************************@phx.gbl...
hi,

i placed System.Windows.Forms.WebBrowser in my
WinForm. When i tried loading word document, it opens
the File Download window. My question is how can i avoid the File Download window from showing? My intented
default action is to always open Open file, just like if i load image, text file or xml file where it does not
show the File Download dialog. I dont want to override
user preference to always show File Download window.
thanks a lot!

gb

.

Nov 16 '05 #5

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

Similar topics

2
by: Anitha | last post by:
Hello All, Using Javascript and using one click, I have to close the window(pop up) and start the download of a file simultaneously. There will be a hyperlink in a pop up window as "Click here...
3
by: Gibby | last post by:
A few weeks back, a message was posted regarding how to force a file download to a client. The code for this technique is shown at the end of this message. A question I have about this...
2
by: Peter | last post by:
Hi! Please, could anybody advice me, is it possible to disable file download dialog in ASP.NET page or just save button in the file download dialog so that user should only open for example...
16
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
16
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
2
by: standish22 | last post by:
want to open a word document stored in my database. What I do is save the document locally, and then open a new winform that has the WebBrowser Control on it and navigate to that new file. ...
4
by: Gary | last post by:
Hi I'm using client-side JavaScript to set window.location.href to an ASP.NET page that outputs an audio file; the user is prompted for the download location. I would also like to download an...
3
by: bfmcfarlane | last post by:
I have an appication that allows users to upload and download files. This application is only accessed when a user clicks on an "Upload / Download" link from within our main application. A new...
1
by: rohit3291 | last post by:
Friends i need your help on the below issue please help me urgent...... Thanks in advance... I have a web site where i have a button called report. On click of report button some data is being...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.