+ Reply to Thread
Results 1 to 3 of 3

Excel window closed but process still running

  1. #1
    Jessica
    Guest

    Excel window closed but process still running

    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


  2. #2
    Rody Meulman
    Guest

    Re: Excel window closed but process still running

    Maybe with "getobject"?


    Gr,
    Rody



    "Jessica" <csfong33@gmail.com> schreef in bericht
    news:1150953885.959662.314190@c74g2000cwc.googlegroups.com...
    > 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
    >




  3. #3
    Jessica
    Guest

    Re: Excel window closed but process still running

    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......


    Rody Meulman wrote:
    > Maybe with "getobject"?
    >
    >
    > Gr,
    > Rody
    >
    >
    >
    > "Jessica" <csfong33@gmail.com> schreef in bericht
    > news:1150953885.959662.314190@c74g2000cwc.googlegroups.com...
    > > 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
    > >



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1