Hello,
I’m working on a pdf report (invoice) application, and i whould like to kow the total
number of page of my report, because I want to write a footer only in the last page of the
invoice.
After lots of search, I found the sc_pdf_page_tot() function, but I can’t return it’s
value in a variable.
I create a new cell “cell_footer_total” and put it in the body of my pdf report.
In Layout PDF interface body I choose the option “Total Page”.
And After When I go to layout PDF > code >body I can see
sc_pdf_page_tot($cell_footer_total);
I want to know “when I come on the last page”, my project is to check :
if(sc_pdf_page_no == sc_pdf_page_tot){ //that means I'm in the last page
// so write the footer
}
precise the page where I can find the function which return the total page of the report.
In this manual you speak about Field
Description
{sc_page_num} Current page number.
{sc_page_tot} Total number of pages.
BUT these 2 variables do not work
Somebody help?