View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default Embedding Excel in a C# WinForm

Tracy,
Here's how to do it in VB:
http://abstractvb.com/code.asp?A=959

Not in a web browser though.

NickHK

"Tracy" wrote in message
...
I'm attempting to embed Excel in a C# WinForm using the information

contained
he http://support.microsoft.com/kb/304662/EN-US/. It works well unless
Excel is already running in its own window. In this case, the embedded

Excel
causes the already running Excel to close its workbook and freeze up. This
happens because the running instance is reassigned (or perhaps reparented)

to
the WinForm.

Is it possible to force a new Excel.exe to be created that serves just the
instance embedded on the WinForm?