Hi All,
I am trying to use the TCPDF in buillt library. This library is available in the external library section of scriptcase.
I am using a form. I have added a custom button PHP (I tried AJAX too), to the Form.
Then in the Button I put the following statement
$pdf = $this->Pdf;
$pdf->SetFont(‘helvetica’, ‘N’, 9);
$pdf->SetTextColor(130);
$pdf->Multicell(80, 5, $end, // w, h, txt
0, ‘R’, true, 1, // border, align, fill, ln
118, $y + 12, true, 0); // x, y, reseth, stretch
Fatal error: Uncaught Error: Call to a member function SetFont() on null i
If I comment the SetFont Line, I get the next error
Fatal error: Uncaught Error: Call to a member function SetTextColor() on null
This continues…
Can someone please give ideas.
The same above commands are working in the Report section of the Code