From: niragorri at hotmail dot com
Operating system: Windows 7
PHP version: 5.3SVN-2010-02-02 (SVN)
PHP Bug Type: Unknown/Other Function
Bug description: Office 2007 error
Description:
------------
There is an error when using Office 2007 to access an excel sheet when
your under Windows XP using the php COM class. But you can still access it.
However, if you're using Windows 7 with any version of office you can't use
the COM class to access the excel file. The same script that worked for me
under XP was useless in 7.
Reproduce code:
---------------
$excel = new COM ("Excel.sheet");
$excel->Application->DisplayAlerts = false;
$abrir = $excel->application->Workbooks->Open($hojita);
$excel->Application->Visible = 1;
//se abre la hoja1 donde se encuentran los datos del
proyecto y se
llama a la funcion llenarformato
$hoja = $abrir->Worksheets("Hoja1");
$hoja->activate;
$contcol=1;
$contfil=1;
while (utf8_encode ($hoja->Cells(1, $contcol))!= ""){
$contcol++;
}
while (utf8_encode ($hoja->Cells($contfil, 1))!= ""){
$contfil++;
}
$numFil=$contfil-1;
$numCol=$contcol-1;
$maxFil=$numFil;
$maxCol=$numCol;
Expected result:
----------------
I expected it to access an excel document and report the number of columns
and rows of a specific sheet. In most Windows 7 systems
--
Edit bug report at http://bugs.php.net/?id=50908&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50908&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50908&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50908&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50908&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50908&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50908&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50908&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50908&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50908&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50908&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50908&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50908&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50908&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50908&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50908&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50908&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50908&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50908&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50908&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50908&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50908&r=mysqlcfg