|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-25 13:01 UTC] sander@php.net
[2002-10-02 07:25 UTC] phanto@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
$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