Witam,
generuje sobie ładną tabelke w fpdf - jednak:
- zawartość pól nie powoduje powiększenia wysokości i przejścia tekstu do nowej linii tylko wychodzi poza komórkę

  1. function FancyTable($data)
  2. {
  3. $this->SetFillColor(255,0,0);
  4. $this->SetTextColor(255);
  5. $this->SetDrawColor(128,0,0);
  6. $this->SetLineWidth(.2);
  7. $this->SetFont('','B');
  8.  
  9. $w = array(50, 108);
  10. $this->SetFillColor(224,235,255);
  11. $this->SetTextColor(0);
  12. $this->SetFont('');
  13. $fill = false;
  14. foreach($data as $row)
  15. {
  16. $this->SetFont('','B');
  17. $this->Cell($w[0],6,$row[1],1,0,'L',$fill);
  18. $this->SetFont('');
  19. $this->Cell($w[1],6,$row[2],1,0,'L',$fill);
  20. $this->Ln();
  21. $fill = !$fill;
  22. }
  23. $this->Cell(array_sum($w),0,'','T');
  24. }



// Zastosowanie MultiCell powoduje obniżenie kolejnej komórki "td" do nowej linii.

Prosze o pomoc.