Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Embedding Excel in a C# WinForm

Tracy,
In VB, you get an instance of Excel that can do anything.
You need to check if C# requires extra work.

NickHK

"Tracy" wrote in message
...
That approach works great for displaying data but not for editing since

all
keystrokes are ignored.

Tracy

"NickHK" wrote:

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

Not in a web browser though.

NickHK




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel in winform freezes Excel vbnetdev Excel Programming 2 December 6th 06 04:31 PM
Excel in winform freezes Excel vbnetdev Excel Programming 0 December 5th 06 09:03 PM
excel in winform NickHK Excel Programming 0 December 4th 06 04:05 AM
How to Create a Document and Save it from a WinForm Franco Vitali Excel Programming 0 November 25th 03 03:09 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"