2017-01-27 9 views
-4

PHPを使用してFPDFでどのようにこのようなテーブルを作成しますか?PHPを使ってfpdfでこのようなテーブルを作るには?

$ this-> Cellでこれを行う方法を理解できないようです。

enter image description here

+1

私はここの人々はあなたのためにコーディングするつもりはないと思います。 fpdfは非常に素敵なドキュメントを持っていますので、試してみてください。問題に直面したら、ここにお問い合わせください –

+0

このページを見ることができますhttp://www.fpdf.org/ja/tutorial/tuto5.htm(またはwww.google.com and find 'table in fpdf') – mymiracl

+0

私はコードを記入したくありません。基本的なアイデアやサンプルはほとんどありません。私は試みたが問題を形成した。 @MASIDDIQUI –

答えて

0

OK ..試してみましょう。ほんの一例..アイデア。 OK ?

$pdf->SetFillColor(255,0,0); 
$pdf->SetTextColor(255); 
$pdf->SetDrawColor(128,0,0); 
$pdf->SetLineWidth(.3); 

// Title row 
$pdf->SetFont('', 'B'); 
$pdf->Cell(100, 8, "LEARNING POTENTIAL", 1, 0, 'L', true); 
$pdf->SetFont('', ''); 
$pdf->Cell(20, 8, "Score", 1, 0, 'C', true); 
$pdf->Cell(20, 8, "Results", 1, 0, 'C', true); 
$pdf->>Ln(); 

// Data rows 

// (loop) foreach($data as $row) { 

    $pdf->SetFont('', 'B'); 
    $pdf->Cell(100, 8, "Reasoning", "LTR", 0, 'L'); 
    $pdf->Cell(20, 8, "", "LTR"); 
    $pdf->Cell(20, 8, "", "LTR"); 
    $pdf->>Ln(); 

    $pdf->SetFont('', 'B'); 
    $pdf->Cell(100, 8, "The ability to interpret information and", "LR", 0, 'L'); 
    $pdf->SetFont('', ''); 
    $pdf->Cell(20, 8, "6", "LR"); 
    $pdf->Cell(20, 8, "Effective", "LR"); 
    $pdf->>Ln(); 

    $pdf->SetFont('', 'B'); 
    $pdf->Cell(100, 8, "drawing accurate conclusions", "LBR", 0, 'L'); 
    $pdf->Cell(20, 8, "", "LBR"); 
    $pdf->Cell(20, 8, "", "LBR"); 
    $pdf->>Ln(); 

// (end loop) 

3行で各データ行を分割しました。

+1

ありがとう、@ジェリー。それはアイデア以上のものです。 –

関連する問題