/** * Set the rows to repeat at the top of each printed page. * * @param integer $firstRow First row to repeat * @param integer $lastRow Last row to repeat. Optional. * * @return PrintSetup */ public function printRepeatRows($firstRow, $lastRow = null) { if (!isset($lastRow)) { $lastRow = $firstRow; } $this->printRepeat->setRowFrom($firstRow)->setRowTo($lastRow); if (is_null($this->printRepeat->getColFrom())) { $this->printRepeat->setColFrom(0)->setColTo(Biff8::MAX_COL_IDX); } return $this; }