ID: 19596
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
-Bug Type: Unknown/Other Function
+Bug Type: COM related
Operating System: windows2000/windowsxp
PHP Version: 4.2.3
New Comment:
Reclassified.
Previous Comments:
------------------------------------------------------------------------
[2002-09-25 12:26:30] [EMAIL PROTECTED]
$strfilename = ".\\test.xls";
$strfilename = realpath($strfilename);
$exapp = new COM("Excel.application") or Die ("Did not connect to
Excel");
if (file_exists($strfilename))
{
$wkb = $exapp->Workbooks->open($strfilename);
echo "Excel wurde ge�ffnet";
$wkb->close(false,$strfilename,false);
$exapp->Quit();
$exapp->Release();
}
If apache or IIS runs not under LocalSystem (admin-rights)
the script cause folowing error:
Warning: Unable to obtain IDispatch interface for CLSID
{00024500-0000-0000-C000-000000000046}: Zugriff verweigert in
d:\projekte\php_daimlerchrysler\apacheDaten\testexcel.php on line 3
Did not connect to Excel
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19596&edit=1