Disable File Download Window

  • Thread starter Thread starter gb
  • Start date Start date
G

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
 
gb said:
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
 
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,

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]
- (e-mail address removed)

gb said:
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


.
 
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]
- (e-mail address removed)

gb said:
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]
- (e-mail address removed)

gb said:
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


.
 
Back
Top