RE: Excel interoperability problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

From you description, I understand that you want to run a winform
application with embedded Excel Object. And in the meantime, you will have
an Excel Application running.
Now if we launch the Winform Forms application first and then launch the
Excel, all is OK.[Secenario A]
But if now we launch the Excel Application first, and then the Winform
Application later, the Excel Application will not reponse to user's
interation.[Scenario B]
If I misunderstood, please feel free to let me know.

Firstly I would like to know what is the Excel Object Embedded in the
Winform. Did you host a WebBrowser in Winform and then open a Excel
Workbook in the WebBrowser? Or how did you embed the Excel Object into
winform.

Based on my experience, I wonder this may be caused by that there is only
one Excel process in the problem case[Scenario B].
You may try to check how many Excel.exe process in both Scenario A and B
with Task Manager.
1. Press Ctrl+Shift+ESC, the Task Manager will open
2. Press the Processes Tab, check how many Excel.exe process exist in
Scerario A and B.

You may have a try and let me know the result.

If the above assumption is the case, please let me know how you embedded
the Excel Object into Winform to see if there is any workaround.
But based on my knowlege, it is hard to control that, this is all done by
OLE.

If you still have any concern, please feel free to let me know.
I look forward to hearing from you.

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • embem Excel in winford using vb.net
    ... I have a winform which receives data from database and present ... only be export to a gif image, not Excel chart. ... What I need to do is to create an in-memory Excel object, ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Excel interoperability problem
    ... the winform application hosts a WebBrowser and opens a Excel ... The app works for Excel 2002 and 2003. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Slow drawing speed of WinForms (esp via COM interop)
    ... I made something the other way round i..e uisng Excel from Windows. ... scenario I am having problems with is via COM interop and Excel. ... Wrapper class instantiates the WinForm ... controls, including one or two grids, but you can sit there and watch ...
    (microsoft.public.dotnet.framework.windowsforms)
  • embed Excel object in Winform using .Net
    ... have a winform which receives data from database and present them as ... Excel chart and spreadsheet. ... only be export to a gif image, not Excel chart. ... What I need to do is to create an in-memory Excel object, ...
    (microsoft.public.dotnet.general)
  • Re: embed Excel object in Winform using .Net
    ... T> have a winform which receives data from database and present them as ... T> only be export to a gif image, not Excel chart. ... T> What I need to do is to create an in-memory Excel object, ...
    (microsoft.public.dotnet.general)