Groups | Blog | Home
all groups > dotnet windows forms > february 2004 >

dotnet windows forms : Avoiding the "File download" dialog when using the WebBrowser control to navigate to an excel file (C#/Windows Forms)


Rick Strahl [MVP]
2/7/2004 11:34:57 AM
Luis,

No I don't think you can disable this. This is part of IE's security
settings and those apply regardless of whether you run inside of an app or
IE itself.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web


[quoted text, click to view]

Luis Ferrao
2/7/2004 8:53:29 PM
Hi,

My Windows Forms application uses the WebBrowser control to
open an Excel file since OLE objects are gone in .Net. The application
is actualy a clone of the one found in the MS Knowledge Base Article
"How to Use the WebBrowser Control to Open Office Documents with
Visual C# .NET" which can be found here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;304662

The application does what it's supposed to (ie Loads embeded Excel
and opens the file), the problem is that prior to that it displays a
"File Download" dialog. For personal use i could simply uncheck the
"always ask before opening this type of file" checkbox but for the
the release this is not an option.

I would like to know if it is possible to avoid the "File Download"
dialog.

Thanks in advance for any help.

Luis Ferrao


AddThis Social Bookmark Button