PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$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;
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?
If unsaved workbooks are open when you use this method, Microsoft Excel displays a dialog box asking whether you want to save the changes. You can prevent this by saving all workbooks before using the Quit method or by setting the DisplayAlerts property to False. When this property is False, Microsoft Excel doesn’t display the dialog box when you quit with unsaved workbooks; it quits without saving them.