3
멀티 셀 테이블 FPDF를 만드는 방법내가 멀티 셀과 테이블을 생성하는 코드를 다음과 쓴
$this->Cell(25, 25, "SR.No.", 'LTRB', 0, 'L', true);
$this->Cell(60, 25, "CHALLAN", 'LTRB', 0, 'L', true);
$this->Cell(300, 25, "JOB NAME", 'LTRB', 0, 'L', true);
$this->Cell(60, 25, "QTY.", 'LTRB', 0, 'L', true);
$this->Cell(60, 25, "RATE", 'LTRB', 0, 'L', true);
$this->Cell(90, 25, "AMOUNT", 'LTRB', 1, 'C', true);
$i=1;
while($row = mysql_fetch_array($result))
{
$x = $this->x;
$y = $this->y;
$push_right = 0;
$this->MultiCell($w = 25,25,$i,1,'C',0);
$push_right += $w;
$this->SetXY($x + $push_right, $y);
$this->MultiCell($w = 60,25,$row[3],1,'C',0);
$push_right += $w;
$this->SetXY($x + $push_right, $y);
$this->MultiCell($w = 300,25,$row[2],1,'L',0);
$push_right += $w;
$this->SetXY($x + $push_right, $y);
$this->MultiCell($w = 60,25,$row[4],1,'L',0);
$push_right += $w;
$this->SetXY($x + $push_right, $y);
$this->MultiCell($w = 60,25,$row[5],1,'L',0);
$push_right += $w;
$this->SetXY($x + $push_right, $y);
$this->MultiCell($w=90,25,$row[6],1,'C',1);
$this->Ln();
$i++;
}
니어를 생성 내 코드 각 열의 동일한 높이가 여러 번 시도되었지만 해결되지 않았습니다.