I need to use the page number value into an if clause to show items starting from the second page
@Lorenzo Levis the page number is not available inside expressions. But you could try using the HideHeaderOnFirstPage parameter of PrintLayout, and including a different header for the first page. This is used in the Résumé sample, please download the demo app and check it out.
Hi Leonardo
the solution works but the header doesn't appear in the second page. Is a known issue or there is something else to do? i just set the property HideHeaderOnFirstPage to True
Did you check the Résumé sample?
That sample hides the header on the first page:
If you check the contents of the Header placeholder, you will see that it corresponds to the top of the section I highlighted below, which includes the "Name, JobTitle" and the page number "1/N".
If you check the output pdf file, you will see that this header is only displayed on the second page. If the file had more than 2 pages, the header would be shown on every page but the first.
However, you will find a distinct "header" in the first page of the output file:
But in reality that is not a header, it's simply the top of the MainContent placeholder:
So, if you have two headers H1 and H2, and you want H1 to appear on the first page and H2 to appear on other pages, you should place H2 on the Header placeholder, hide it on the first page, and make sure that H1 is the topmost content of the MainContent placeholder.
Hope this helps.
Hi,
do you want to add page number and total number of pages at the footer part ?
you can check below post for more information .
https://www.outsystems.com/forums/discussion/72040/ultimate-pdf-obtain-page-number-programatically/
Thanks,
Ajit Kurane.
Hi
Thank you for answering
No, i need to use the page number value as a variable inside an expression component to check if the current page is first one or not, so I should display different graphics items