#19596 [Opn]: ?
| From: | sander@php.net | Date: | Wed, 25 Sep 2002 18:01:01 +0000 |
| Subject: | #19596 [Opn]: ? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20349@lists.php.net to get a copy of this message | ||
ID: 19596
Updated by: sander@php.net
Reported By: sven.packmor@tz-mikroelektronik.de
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] sven.packmor@tz-mikroelektronik.de
$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