我使用FPDF并且我想使用MultiCell()生成表,因为我需要它的换行属性。试过MultiCell(),但它不能产生换行符。
$x = 15;
$y = 35;
$b = 1;
$ri = 10; // row incrementor
$pdf->SetXY($x, $y+($ri*5));
$pdf->Cell(40, 10, "Scheduled", $b, 1);
$pdf->SetXY($x+150, $y+($ri*5));
$pdf->Cell(40, 10, "Fault Analyzed", $b, 1);
$pdf->SetXY($x+40, $y+($ri*5));
$pdf->MultiCell(110, 10,$sch_count, $b, 1);
$pdf->SetXY($x+40+150, $y+($ri*5));
$pdf->MultiCell(80, 10,$ana_count, $b, 1);