Topic: Make a vertical line on PDF report

Hi all,

I have my customized report for Sales invoice. We already have the printed forms so I'll just format the content to fit in. Now, those forms are running out, so I needed to add some additional format on the report. However, I could not make the vertical line to appear. I can make horizontal line using $rep->UnderlineCell or $rep->Line($rep->row) but $rep->cols is not working.

Do I misses something? Please help. Thanks!

Re: Make a vertical line on PDF report

Look at the code for how the border lines are made.

Re: Make a vertical line on PDF report

If you can recreate the printed form as a pdf, you can load it as a "background" and use the report as it is. Just design the form in any word processor and export/print it to pdf.

https://frontaccounting.com/fawiki/index.php?n=Devel.ReportWatermarking

Re: Make a vertical line on PDF report

Hi,

I've already managed to create it using this block of code:

$this->LineTo($col += $width, $from,$col, $to);

@tm thank you for sharing another alternative. I may use it in the future. smile