Не работает repeatRows() строк в ExcelWriter'e

DDT

Новичок
Не работает repeatRows() строк в ExcelWriter'e

Вот пример из мана:

PHP:
  $workbook =& new Spreadsheet_Excel_Writer();
  $worksheet =& $workbook->addWorkSheet('asd');
  $worksheet->setColumn(0,0,100);
  $worksheet->write(0,0,"99 Bottles Of Beer On The Wall- The Complete Lyrics");
  // repeat only the first row
  $worksheet->repeatRows(0);
  for ($i = 99; $i > 0; $i--)
  {
      if ($i > 1) {
          $next = $i - 1;
      }
      else {
          $next = "no more";
      }
      $worksheet->write(100 - $i,0,"$i Bottles of beer on the wall, $i bottles of beer, ".
                                   "take one down, pass it around, ".
                                   "$next bottles of beer on the wall.");
  }
  $workbook->send("asd.xls");   
  $workbook->close();
Формируется и открывается книга Excel, но в ней не повторяется 1 строка. Хотя раньше все работало. Не могу понять где собака: ExcelWriter, Excel, PHP, я :)


Спасибо.
 
Сверху