From:
Operating system: Windows 2008 Server
PHP version: 5.3.6
Package: COM related
Bug Type: Bug
Bug description:Outputs While trying to call
Description:
------------
On my WinXP computer with Office 2003 all work correctly, php-script (see
it in
section 'test script') generates ms-excel file 1.xls. But on the computer
with
windows2008server this php-script generates an error:
Fatal error: Uncaught exception 'com_exception' with message
'<b>Source:</b>
Microsoft Office Excel<br/><b>Description:</b> Ðевозможно
полÑÑиÑÑ ÑвойÑÑво Save
клаÑÑа Workbook' in C:\www\prj\1.php:12 Stack trace: #0
C:\www\prj\1.php(9):
variant->Save() #1 {main} thrown in C:\www\prj\1.php on line 9
My php installed as an apache handler.
How to solve it?
Test script:
---------------
$x = new COM("Excel.Application");
$x->Application->Visible = 1;
$x->Workbooks->Add();
$x->ActiveSheet->StandardWidth = 5;
$r = $x->Range("a:a");
$r->Select();
$rc = $x->Selection();
$rc->ColumnWidth = 50;
$x->Workbooks[1]->SaveAs("c:/1.xls");
$x->Quit();
$x->Release();
$x = Null;
$r = Null;
Expected result:
----------------
File 1.xls must be generated and saved into C:\
Actual result:
--------------
Fatal error: Uncaught exception 'com_exception' with message
'<b>Source:</b>
Microsoft Office Excel<br/><b>Description:</b> Ðевозможно
полÑÑиÑÑ ÑвойÑÑво Save
клаÑÑа Workbook' in C:\www\prj\1.php:12 Stack trace: #0
C:\www\prj\1.php(9):
variant->Save() #1 {main} thrown in C:\www\prj\1.php on line 9
--
Edit bug report at http://bugs.php.net/bug.php?id=54353&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54353&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54353&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=54353&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54353&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=54353&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54353&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=54353&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=54353&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=54353&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=54353&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=54353&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=54353&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=54353&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54353&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54353&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54353&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=54353&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=54353&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=54353&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=54353&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=54353&r=mysqlcfg