Report PDF get value of item fields to draw a line

Hello,

I am creating PDF report and need to get value of special fields from items. Unfortunately it doesn’t work. Does anyone have a solution for it? Below is my code.

            foreach ({items} as $NM_ind => $Dados)
            { 
                $var_yy = $cell_items_pitch_item[$NM_ind];
                sc_pdf_line(20,$var_yy,195,$var_yy);                
                sc_pdf_sub_sel_end(5);
            }

Hello,

really no solution?

BR
Christina

It is a bit unclear what you mean with ‘it doesnt work’.
You can find examples enough on https://tcpdf.org/examples/ this is the reference site for working with tcpdf. For almost every $pdf->… there is a sc_pdf_… function. And you can basically use these also together if you so wish.

See also: http://www.scriptcase.net/forum/forum/scriptcase-8/discussion-aa/63096-my-pdf-application-discoveries

sorry if I was unclear. I mean this line doesn’t work.
$var_yy = $cell_items_pitch_item[$NM_ind];

Under which event in the pdf application?

Hello,
this is not an event is direct in the code of PDF Report.

scriptcase php code doesnt work on pdf in all places where you can code. This: {items} is not translated by scriptcase directly in the pdf report for the OnRecord it would work tho.
So in order to do something special you have to precaclutate it in the On* events. So to make it simple specific scriptcase constructions do not work in the Code part of a pdf.
I reported this before in quite some detail but cant find it back so quickly on the forum.