Excel COM - Unable to get the Open property of the Workbooks class?
- by Abs
Hello all,
I have tried this and I get this error:
$excel_app = new COM("Excel.Application") or Die ("Did not connect");
$Workbook = $excel_app->Workbooks->Open('Variables.xls') or Die('Did not open filename');
I get this error:
Unable to get the Open property of the Workbooks class
What does this error mean? In addition, is there an API or a function list for accessing excel via COM.
Thanks all
Update
Full error:
exception 'com_exception' with message 'Source: Microsoft Excel
Description: Unable to get the Open property of the Workbooks class' in C:\excel.php:22 Stack trace: #0 C:\excel.php(22): variant->Open('C:\...') #1 {main}