2013-09-23 6 views
0

Je voudrais faire un format de table sur FPDF en utilisant Multicell. Je voudrais avoir une multi-cellule sur la description de l'article, mais je ne peux pas le faire comme ceci:Organisation de FPDF en Multicell?

| ID d'article | article/Description | prix unitaire | montant total | < -Ce Format

ici est mon code

foreach($data as $row) { 

     $this->MultiCell($w[0],4,$row[0],'LR',0,'C',$fill); 
     $this->SetFont(''); 

     $this->MultiCell($w[1],4,$row[1],'LR',0,'C',$fill); 
     $this->SetFont(''); 

     $this->MultiCell($w[2],4,$row[2],'LR',0,'R',$fill); 
     $this->SetFont(''); 

     $this->MultiCell($w[3],4,$row[3],'LR',0,'R',$fill); 
     $this->SetFont(''); 

     $this->MultiCell($w[4],4,$row[3],'LR',0,'R',$fill); 
     $this->SetFont(''); 

     $this->Ln(); 
     $fill =! $fill; 
    } 

Répondre

0

Vous pouvez résoudre votre problème, essayer

http://youhack.me/2010/06/10/dynamically-generate-pdf-files-in-php/