Exemplo n.º 1
0
 /**
  * Set the columns to repeat at the left hand side of each printed page.
  *
  * @param integer $firstCol First column to repeat
  * @param integer $lastCol  Last column to repeat. Optional.
  *
  * @return PrintSetup
  */
 public function printRepeatColumns($firstCol, $lastCol = null)
 {
     if (!isset($lastCol)) {
         $lastCol = $firstCol;
     }
     $this->printRepeat->setColFrom($firstCol)->setColTo($lastCol);
     if (is_null($this->printRepeat->getRowFrom())) {
         $this->printRepeat->setRowFrom(0)->setRowTo(Biff8::MAX_ROW_IDX);
     }
     return $this;
 }