2014-09-05 32 views
0

我設置默認值:0 下注邊界將被顯示。 如何解決這個問題? 請告訴我...如何多單元刪除fpdf中的邊框?

while ($row = $result->fetch_row()) 
    { 
    for ($i = 0; $i < 11; $i++) 
     { 
     $pdf->SetXY($x, $y); 
     $pdf->Rect($x, $y, $widths[$i], $row_height); 
     $pdf->MultiCell($widths[$i], $line_height, 
     iconv('UTF-8', 'windows-1252', $row[$i]), 0, 'L'); 
     $x += $widths[$i]; 
    } 
    } 

回答

1

你看到的是由Rect()調用創建前的邊界。

0

Multicell默認邊界值爲0.除非我們指定border爲1,否則不會顯示任何邊框。

MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]]) 

上多節http://www.fpdf.org/en/doc/multicell.htm

參考FPDF文檔中的上述問題爲多細胞無邊框,所以它不會顯示任何邊界。但是有一個矩形,顯示邊框。

Rect(float x, float y, float w, float h [, string style]) 

參考FPDF文檔上的矩形http://www.fpdf.org/en/doc/rect.htm