PDF Report: Current Page, Total Page

Hi,

as the subject tells, I have a question concerning the specials in Layout PDF -> Settings.
Is it possible to read these values in a variable? For the Current page the Web Help wants to give the function “sc_pdf_page_no”.
But the process stops with “Fatal error: Call to undefined function sc_pdf_page_no()” Are there some parameter???

The link in the Web Help to the fpdf page is wrong, there is a typo. It should be http://www.fpdf.org/ instead http://www.fdpf.org/.

Best regards

Eric

Re: PDF Report: Current Page, Total Page

no ideas?

Re: PDF Report: Current Page, Total Page

I also tried to call the variables which are show in the WINHELP:

report pdf variables
variaveis report pdf

{sc_page_num} ? Current page number

{sc_page_tot} ? Total number of pages.

“{PAGE} = {sc_page_num}.”/".{sc_page_tot};"

Unfortunally I was told “Undefined variable: sc_page_num”
and “Undefined variable: sc_page_tot”

Best regards

Eric

Re: PDF Report: Current Page, Total Page

Noone has an idea why these variables or function do not work?

Re: PDF Report: Current Page, Total Page

Where are you using these codes?

V?tor Jamil

Re: PDF Report: Current Page, Total Page

Hi Vitor,

I tried to use it in the the events (onInit/onRecord/onHeader/onFooter).

Best regards

Eric

Re: PDF Report: Current Page, Total Page

{PAGE} is a field?

use onRecord to attribute the value.

{field} = {sc_page_num}."/".{sc_page_tot};

Re: PDF Report: Current Page, Total Page

Dear Vitor,

I would like to say it works, but unfortunally it does not.

Sorry for the other lines in the jpg, made a screenshot and the new page was building up.
This was the answer I got when using:

{seite} = {sc_page_num}."/".{sc_page_tot}; // “seite” is the german word for page

in the onRecord event.

Best regards

Eric

Re: PDF Report: Current Page, Total Page

To administrator
To developer of scriptcase

please help us.