PHP的Excel读者:获得删除/删除线值

我正在寻找方法来parsingExcel工作表中单元格的三明治/删除线值,如果可能的话使用PHP脚本。 删除或不包含简单的文本值(没有公式或任何东西)的单元格。

我尝试使用http://code.google.com/p/php-excel-reader/和其他几个脚本。 但是我还没有find任何PHP脚本来parsing这个特定的值(删除),我试着没有成功地将这个parsingfunction添加到php-excel-reader中。

我已经尝试添加以下内容:

function lineTrought($row,$col,$sheet=0) { return $this->fontProperty($row,$col,$sheet,'strikethrough'); } 

并且在这部分parsing代码中添加一些代码(用**表示):

  case SPREADSHEET_EXCEL_READER_TYPE_FONT: $height = v($data,$pos+4); $option = v($data,$pos+6); $color = v($data,$pos+8); $weight = v($data,$pos+10); $under = ord($data[$pos+14]); **$strikethrough = v($data,$pos+16);** $font = ""; // Font name $numchars = ord($data[$pos+18]); if ((ord($data[$pos+19]) & 1) == 0){ $font = substr($data, $pos+20, $numchars); } else { $font = substr($data, $pos+20, $numchars*2); $font = $this->_encodeUTF16($font); } $this->fontRecords[] = array( 'height' => $height / 20, 'italic' => !!($option & 2), 'color' => $color, 'under' => !($under==0), 'bold' => ($weight==700), **'strikethrough'=>$strikethrough,** 'font' => $font, 'raw' => $this->dumpHexData($data, $pos+3, $length) ); break; 

但是我找不到指示删除线值的正确数据。 v($ data,$ pos + 16)是不正确的,我已经尝试了一堆没有任何成功的其他东西。

如果不能使用PHP库,想知道如何用Python或Perl脚本parsing我的XLS,然后将数据切换到PHP?

看起来好像从CPAN Spreadsheet :: ParseExcel 0.55 Perl脚本可能工作,但我的主要应用程序是PHP,所以我需要写结果到一个文件,并parsing它在PHP或类似的东西。

也请查看: http : //www.codeplex.com/PHPExcel

它说它可以读取Excel文件。 我主要是用来写作的,所以我不知道阅读的支持程度。

使用PHPExcel( http://phpexcel.net ,官方url),您可以从单元格中读取样式值。 对于删除线是这样的。

 $cell->getStyle()->getFont()->getStrikethrough().