TCPDF无法生成超过4000行

时间:2012-01-19 05:40:31

标签: php tcpdf

我有一个问题,我可以查询超过4000行,我已经深入研究的问题就在这里。问题是在生成行的过程中,我得到一个未找到的页面错误需要一些时间。我能做些什么呢?

     $totalHeight1 = ceil($pdf->getStringHeight( 20,$eventMessage,$reseth = false,   $autopadding = true,$cellpadding = '',  $border = 1));  
 $totalHeight2 = ceil($pdf->getStringHeight( 15,$eventLocation,$reseth = false, $autopadding = true,$cellpadding = '',  $border = 1));  

if($totalHeight1>$totalHeight2)
       $totalHeight = $totalHeight1;
    else
      $totalHeight = $totalHeight2;
    $pdf->Cell(10, $totalHeight, $count, 1, 0, 'L', 0, '', 0);
    $pdf->Cell(15, $totalHeight, $row['latitude'], 1, 0, 'L', 0, '', 0);
    $pdf->Cell(16, $totalHeight, $row['longitude'], 1, 0, 'L', 0, '', 0);
    $pdf->Cell(25, $totalHeight, $row['dateTimer'], 1, 0, 'L', 0, '', 0);
    $pdf->Cell(25, $totalHeight, $row['dataInsertDateTime'], 1, 0, 'L', 0, '', 0);
    $pdf->MultiCell(20, $totalHeight, $eventMessage, 1, 'L', 0, 0, '', '', true);
    $pdf->Cell(15, $totalHeight, $eventSource, 1, 0, 'L', 0, '', 0);
    $pdf->MultiCell(15, $totalHeight, $eventLocation, 1, 'L', 0, 0, '', '', true);
    $pdf->Cell(15, $totalHeight, $row['stat'], 1, 0, 'L', 0, '', 0);
    $pdf->Cell(10, $totalHeight, $row['speed'], 1, 1, 'L', 0, '', 0);

0 个答案:

没有答案