
Office Templates - Excel problem
Hi,
I got problem using Office Templates
Im using Excel control to work with some excel file. The problem is, that
after closing Excel application the process is still active (until the
window in my clarion application is close)
and I cannot end it from source.
Window WINDOW('Title'),AT(,,260,100),GRAY,
OLE,AT(33,18,10,10),USE(?SMExcel),TRN,HIDE
END
END
MSExcel1 MSExcelClass
[...]
MSExcel1.Init(Window,?SMExcel,1,1,1)
MSExcel1.CreateFile()
[...]
MSExcel1.Save('MyFile')
MSExcel1.Close(True)
MSExcel1.Quit()
The Excel Application has closed but the process EXCEL.EXE is still active.
I coudnt find any other method in help file that could help me with it.
Also such solution is not helpful:
MSExcel1 &MSExcelClass
MSExcel1 &= New(MSExcelClass)
MSExcel1.Init(Window,?SMExcel,1,1,1)
MSExcel1.CreateFile()
MSExcel1.Save('MyFile') ; MSExcel1.Close(True) ; MSExcel1.Quit()
Dispose(MSExcel1)
Only when I create another window in my procedure and put the controll on
that window,
then closing it causes that process Excell.exe to be killed. But I dont want
to create another window.
Can anyone help me how to kill Excel.exe without closing the active window?
Thanks,
Paul
(c55 , office 2000)