for ($row = 0; $row<$this->_tabla->getRowCount(); $row++) {
for ($i=0; $i<$this->_tabla->getColCount(); $i++ ) {
$tmp = $this->_tabla->getCellAttributes($row,$i);
- if (is_null(@$tmp['width'])) {
- $attr[$i] = 0;
- }
- else {
+ if(intval($tmp['width']) != 0)
$attr[$i] = intval($tmp['width']);
- }
+ if(count($attr) == $this->_tabla->getColCount())
+ break;
}
+ if(count($attr) == $this->_tabla->getColCount())
+ break;
}
$tmp = array_sum($attr);
+
$attr2[0] = 0;
for ($i=1; $i<count($attr); $i++) {
$attr2[$i] = intval(($ancho_pagina * $attr[$i-1] / $tmp) +
$orientacion = $this->_marco->getOrientation();
$alto = $this->_marco->espacioDisponible;
}
-
$attr2 = $this->_obtenerAnchoColumnas();
-
for ($i = 0; $i < $this->_tabla->getRowCount(); $i++) {
$max = 0;
for ($j = 0; $j < $this->_tabla->getColCount(); $j++) {
else {
$ancho_columna = $attr2[$j+1] - $attr2[$j];
}
-
$txt = $this->_marco->wordWrap(
@$this->_tabla->getCellContents($i,$j), $ancho_columna,
$estilo);
$repetir[$i]['max'] = $max;
}
}
-
if ($alto <= 0)
{
$this->_newPage();