Excel COM - Unable to get the Open property of the Workbooks class?

Posted by Abs on Stack Overflow See other posts from Stack Overflow or by Abs
Published on 2010-05-10T09:35:25Z Indexed on 2010/05/10 9:54 UTC
Read the original article Hit count: 891

Filed under:
|
|

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}

© Stack Overflow or respective owner

Related posts about php

Related posts about excel