Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel Process Not Closed (C++) only after complete Application Shutdown
I have a code which automates few things to create an excel file. The
problem is that once its done and saves the file and closes it the excel process still is running in the background. It terminates it self after the app completely closes it's self. here is a pice of my code: ================================================== ===== xlApp.SetUserControl(false); xlApp.SetVisible(false); wb = xlApp.GetWorkbooks(); _wb = wb.Add(covOptional); ws = _wb.GetSheets(); //Automate some stuff... _wb.SetSaved(TRUE); _wb.SaveCopyAs(COleVariant(filePath)); _wb.Close(COleVariant(covFalse),COleVariant(filePa th),COleVariant((long)0)); wb.Close(); xlApp.Quit(); xlApp.ReleaseDispatch(); xlApp = NULL; wb = NULL; ws = NULL; _ws = NULL; _wb = NULL; so am I terminating these in the wrong order? I've tryed different ways... This class is called from button event. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel window closed but process still running | Excel Programming | |||
Excel.Application.Quit leaving Excel process stays active | Excel Programming | |||
How to Kill Excel application process | Excel Programming | |||
Providing Estimate to Complete Info on a Process | Excel Programming | |||
Mail merge issue - ghost Excel process remains after closing application | Excel Programming |