   [.net] Embedding Excel
  I've been trying without success for about 2 weeks to get an Excel spreadsheet editor embedded into a Windows Forms dialog (VS 2005).  I've been all over the web reading different examples and complaints.  The best solution I've seen so far for my situation is to use COM to embed Internet Explorer in VB.NET and use the "e.pDisp.Application" object when handling the NavigateComplete2 event as described in this article.  I'm aware of the WebBrowser control provided in .NET 2.0, but I don't see an easy way to get at the underlying Application object of an embedded document.The COM / IE approach would work great if it weren't for the wonders of Microsoft security.  When navigating to an Excel document on the local file system, the file download dialog box pops up, prompting the user to click "Open".  I cannot find a way on my own or through extensive Google searching to disable this dialog box.  One suggestion was to embed a "Content-Type" header when navigating so that IE would know the MIME type.  However, custom headers are ignored when browsing to local files.  I'd really like to find a method that isn't a terrible hack like getting the handle of the dialog box and programmatically clicking OK.If anyone has any ideas or leads on the IE problem, I would be very grateful.  I'm also completely open to any other known method to get an Excel spreadsheet editor into my application.   
  Although I haven't tried it, Microsoft Office 2007 Beta comes with .NET component wrappers for using Excel files. I'm not quite sure that's what you are looking for, but it's worth a shot.   ;  I downloaded the Office 2007 beta and I'm not seeing where the "component wrappers" are located.  Are you referring to the interop assemblies?   ;Quote:Original post by DaWandererAre you referring to the interop assemblies?I think so, I haven't taken a look at them myself.   ;  There's a lengthy article about it on Microsoft's Support site.  It may get you on the right track.<<edit>>This code is for WinForms.  I thought that was what you needed at first, but reading further into the question,  It turns out you need web.  My mistake >_<[Edited by - Strider_Hiryu on May 30, 2006 12:29:23 PM];  I was only going with the web solution because I thought it was my only option.  By sheer luck, I stumbled across a Microsoft article on a control called the DSOFramer.  This is exactly what I needed, since it allows me embed Excel (or any ActiveX document) and not be dependent on the version of Excel installed.I'm having a little trouble attaching to the Excel document events since I use late binding, but I'm sure I'll find a way.  I appreciate the advice from everyone!P.S. - Office 2007 is hot.   