PC Review


Reply
Thread Tools Rate Thread

Avoiding the "File download" dialog when using the WebBrowser control to navigating to an excel file (C#/Windows Forms)

 
 
Luis Ferrao
Guest
Posts: n/a
 
      7th Feb 2004
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...b;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




 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3VkaGFrYXIgU2FkYXNpdnVuaVtNVlBd?=
Guest
Posts: n/a
 
      8th Feb 2004
To Avoid this you'll have to set the mime type of the stream for browser to "application/vnd.ms-excel"

HT
Sudhakar Sadasivun
Microsoft .NET MVP | MCA
http://weblogs.asp.net/ssadasivun
www.mugh.ne

----- Luis Ferrao wrote: ----

Hi

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

The application does what it's supposed to (ie Loads embeded Exce
and opens the file), the problem is that prior to that it displays
"File Download" dialog. For personal use i could simply uncheck th
"always ask before opening this type of file" checkbox but for th
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 Ferra





 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoiding "0" importing blank cells from another Excel file =?Utf-8?B?SmFuIEstQQ==?= Microsoft Excel Misc 3 9th Sep 2006 05:55 AM
File name is displayed Garbled in "File download dialog box" =?Utf-8?B?SWJyYWhpbS4=?= Microsoft ASP .NET 0 12th Aug 2006 07:44 AM
"File download" dialog creates problem when downloading large file =?Utf-8?B?SmltIEJyb3du?= Windows XP Internet Explorer 0 14th Oct 2005 08:38 PM
Avoiding the "File download" dialog when using the WebBrowser control to navigate to an excel file (C#/Windows Forms) Luis Ferrao Microsoft Dot NET Framework Forms 1 7th Feb 2004 09:34 PM
Avoiding the "File download" dialog when using the WebBrowser control to navigating to an excel file (C#/Windows Forms) Luis Microsoft C# .NET 0 6th Feb 2004 06:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:08 PM.