PHP & COM
Posted: Fri Aug 23, 2002 9:38 am
I have e code like this:
every time that I launch this program remains opened a process in taskmanager. if launch 20 times I find 20 EXCEL running
Someone knows what can seems in order to obviate to this problem or to say me where I mistake?
thanks
Code: Select all
$workbook = "c:\\test.xls";
$ex = new COM("Excel.application") or Die ("Did not connect");
$ex->application->Workbooks->Open($workbook) or Die ("Did not open");
$ex->Application->ActiveWorkbook->RefreshAll(); // this refresh tables
$ex->Application->ActiveWorkbook->PrintOut();
$ex->application->ActiveWorkbook->Close(false);
$ex->Quit();
$ex->Release();
$ex = null;Someone knows what can seems in order to obviate to this problem or to say me where I mistake?
thanks