Anyone make php COM working on WIN7?
Posted on 2011-09-09
I updated my computer from xp to win7.
the php COM do not work now.
Anyone can help?
$excel = new COM("excel.application") or die("Unable to instanciate excel");
$excel->Visible = 0;
$excel->DisplayAlerts = 0;
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Office Excel<br/><b>Description:</b> Microsoft Office Excel cannot access the file 'C:\projects\test.xls'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook