By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,918 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,918 IT Pros & Developers. It's quick & easy.

Disable File Download Window

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.