Tema: PDFcon php
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/01/2005, 14:34
Phantasma__
 
Fecha de Ingreso: noviembre-2003
Mensajes: 39
Antigüedad: 20 años, 4 meses
Puntos: 0
pdf

Esta en la funcion de la tabla principal entonces la otra la llamo despues de esta y como le doy espacio siempre va a tener el mismo espacio por si es que esta tabla termina casi al final el pie de pagina lo tira en otra ya que el espacio qeu defini no es suficiente en esta pagina que hago
function FancyTable($header,$data)
{
$this->SetFillColor(255,255,255);
$this->SetLineWidth(.3);
$this->SetFont('','B','8');
$w=array(20,20,70,25,25,30);
for($i=0;$i<count($header);$i++)
$this->Cell($w[$i],6,$header[$i],1,0,'C',1);
$this->Ln();
$this->SetFillColor(224,235,255);
$this->SetTextColor(0);
$this->SetFont('');
$fill=0;
$i=0;
$j=0;
foreach($data as $row)
{
$this->Cell($w[$i],6,$row,'LR',0,'L',$fill);
$i=$i+1;
if($i=='6')
{
$i=0;
$this->Ln();
}
}
$this->Cell(20,6,0,'LR',0,'L',0);
$this->Cell(20,6,0,'LR',0,'L',0);
$this->Cell(70,6,0,'LR',0,'L',0);
$this->Cell(25,6,0,'LR',0,'L',0);
$this->Cell(25,6,0,'LR',0,'L',0);
$this->Cell(30,6,0,'LR',0,'L',0);
$this->Ln();
$this->Cell(190,0,'','1',1,'L',0);
}
__________________
Fantasma