Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/12/2008, 08:12
Afelipe22
 
Fecha de Ingreso: diciembre-2008
Mensajes: 5
Antigüedad: 15 años, 5 meses
Puntos: 0
Problema con multicell

INTENTO UTILIZAR EL MULTICELL EN EL MMSSQL TABLE PERO PASA QUE LAS COLUMNAS SALEN UNA DEBAJO DE LA OTRA.. AHI DEJO EL CODIGO

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;