SALUDOS---
Código PHP:
function TableHeader()
{
$this->SetFont('Arial','B',9);
$this->SetX($this->TableX);
$fill=!empty($this->HeaderColor);
if($fill)
$this->setTextColor(255,255,255);
$this->SetFillColor($this->HeaderColor[0],$this->HeaderColor[1],$this->HeaderColor[2]);
foreach($this->aCols as $col)
$this->MultiCell($col['w'],4,$col['c'],1,'J',$fill);//
$this->Ln();
}
function Row($data)
{
$this->setTextColor(0,0,0);
$this->SetX($this->TableX);
$ci=$this->ColorIndex;
$fill=!empty($this->RowColors[$ci]);
if($fill)
$this->SetFillColor($this->RowColors[$ci][0],$this->RowColors[$ci][1],$this->RowColors[$ci][2]);
foreach($this->aCols as $col)
$this->MultiCell($col['w'],5,$data[$col['f']],1,$col['a'],'J',$fill);
$this->Ln();
$this->ColorIndex=1-$ci;
}