【问题标题】:How to print Fpdf MultiCell adjacently如何相邻打印Fpdf MultiCell
【发布时间】:2016-01-10 09:25:52
【问题描述】:

这是我的代码。请帮忙。

    foreach ($data as $row)
    {
        $i = 0;
        foreach ($row as $field) {

            $this->MultiCell($header[$i][1], 6, $field, 1,0,  'L', true);
            $i++;

        }
        $this->Ln();
    }

向下显示数据。

【问题讨论】:

  • 你想要右边(列)多少数据?

标签: javascript php mysql fpdf


【解决方案1】:

试试这个:-

$current_y = $this->GetY();
$current_x = $this->GetX();
$this->MultiCell($header[$i][1],5,$field,1,'T', false,'T');
$this->SetXY($current_x + $header[$i][1], $current_y);

希望一切顺利。

【讨论】:

  • 它现在在页面上显示数据。唯一的问题是它覆盖了名称而不是在新行中打印。
猜你喜欢
  • 2012-11-13
  • 1970-01-01
  • 1970-01-01
  • 2013-12-29
  • 2013-03-01
  • 1970-01-01
  • 1970-01-01
  • 2010-11-28
  • 2013-04-15
相关资源
最近更新 更多