J
Joseph
Hello,
I am developing a program that will read data from a
couple of text files, process it, and then, populate data
into specific cells in an Excel spreadsheet.
Towards the end of the program, I try to exit from Excel
using the followings statements.
m_objBook.Close(false, m_objOpt, m_objOpt);
m_objExcel.Quit();
(Definitions are as follows...
Excel._Workbook m_objBook
object m_objOpt = System.Reflection.Missing.Value;
Excel.Application m_objExcel
)
The program ends successfully, but after I execute it a
couple of times, Excel stops responding when I try to
open the resultant file. When I go to task manager, I can
see several Excel.exe tasks out there (even if I don't
have any Excel file open) and I have to close off those
tasks before I can open any excel file.
Any suggestions on how to resolve this issue?
Any help would be greatly appreciated.
thanks!
I am developing a program that will read data from a
couple of text files, process it, and then, populate data
into specific cells in an Excel spreadsheet.
Towards the end of the program, I try to exit from Excel
using the followings statements.
m_objBook.Close(false, m_objOpt, m_objOpt);
m_objExcel.Quit();
(Definitions are as follows...
Excel._Workbook m_objBook
object m_objOpt = System.Reflection.Missing.Value;
Excel.Application m_objExcel
)
The program ends successfully, but after I execute it a
couple of times, Excel stops responding when I try to
open the resultant file. When I go to task manager, I can
see several Excel.exe tasks out there (even if I don't
have any Excel file open) and I have to close off those
tasks before I can open any excel file.
Any suggestions on how to resolve this issue?
Any help would be greatly appreciated.
thanks!