Hi Guys,
I wrote a piece of code here to open and close an excel file..
Everything works fine..But im not sure why when i go to the task manager, the instance of excel is still there running > means that the excel file is not closed properly..Do you guys have any idea what is the problem?
Thankx in advance
I wrote a piece of code here to open and close an excel file..
Everything works fine..But im not sure why when i go to the task manager, the instance of excel is still there running > means that the excel file is not closed properly..Do you guys have any idea what is the problem?
Thankx in advance
Code:
oXL = new Excel.Application();
oWB = oXL.Workbooks.Open("C:\\Content.xls",
Type.Missing,false,
Type.Missing,Type.Missing,
Type.Missing,Type.Missing,
Type.Missing,Type.Missing,true,
Type.Missing,Type.Missing,Type.Missing);
oWB.Close(false,Type.Missing,Type.Missing);
oXL.Workbooks.Close();
oXL.Quit();