【发布时间】:2013-09-06 00:08:43
【问题描述】:
您好先生,我需要有关如何使用多单元格将数组内的数据置于 textWrap 中的帮助
这是我的代码
foreach($data as $row){ //CGANHE THIS ACCORDING TO HEADER
$this->Cell($w[0],4,$row[0],'LR',0,'C',$fill);
$this->SetFont('');
$this->Cell($w[1],4,$row[1],'LR',0,'C',$fill);
$this->SetFont('');
$this->Cell($w[2],4,$row[2],'LR',0,'R',$fill);
$this->SetFont('');
$this->Cell($w[3],4,$row[3],'LR',0,'R',$fill);
$this->SetFont('');
$this->Cell($w[4],4,$row[4],'LR',0,'R',$fill);
$this->SetFont('');
$this->Ln();
$fill =! $fill;
}
$this->Cell(array_sum($w),0,'','T');
$this->Ln(50);
$this->Ln(50);
}
}
非常需要帮助 Tnx 很多 这真的让我发疯了,所以如果有人有任何想法,我将不胜感激。
【问题讨论】:
-
这就是你目前拥有的所有代码吗?如果没有,你能说明你还有什么相关的吗?
-
nnow 我刚刚更新了代码,当我显示数据时如何制作多单元格 |wordwrap|wordwrap |wordwrap|