Excel window closed but process still running

J

Jessica

Hi,
I'm using C# application to open an Excel workbook by using
m_objExcel = new Excel.Application();
and it works fine but problem arises if user close Excel window and go
back to my C# application to open another excel workbook. the workbook
actually is opened successfully but Excel window is invisible now. User
have no choice to kill the EXCEL.EXE in task manager then only it can
resume as normal.

How do I get back the EXCEL window closed by user but still remain in
task manager?
I try to use ShowWindow(...) but it doesn't work.

Appreciate if anyone can help.

Regards,
Jessica
 
J

Jessica

thanks for the reply.
Actually I used GetObject to get back Excel object but the Excel window
is shown only with it's header without worksheet shown......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top