Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Excel instance not shut down
hi,
I have been using Automation with MFC to write data to an excel spread sheet. Part of code is shown below :- // Start Excel and get Application object. if(!m_objApp.CreateDispatch("Excel.Application")) { AfxMessageBox("Couldn't start Excel and get Application object."); //return; } //Get a new workbook. m_objBooks = m_objApp.GetWorkbooks(); //book = objBooks.Add (COleVariant((short)-4167)); m_objBook = m_objBooks.Add (covOptional); //Get the first sheet. m_objSheets = m_objBook.GetSheets(); |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
How do I isolate my Excel server (automation) from other Excel instances? | Excel Discussion (Misc queries) | |||
sharing/using/saving Excel 2002 files in Excel 2003 | Excel Discussion (Misc queries) | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) | |||
VB Automation is Whacking out my Excel Environment | Excel Discussion (Misc queries) |