2014-09-05 75 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