Hide page header on non-first-pages in PDF mode

Max Bo
edited February 11, 2022 in Analytics #1

Hi,

I am rendering my report directly as PDF output and would like to hide the page header on every page that is not the 1st page.
I have already tried adding this to the onRender script of the Grid that I placed in the Page Header segment

//first nested grid
if( pageNumber > 1 ){
this.getStyle().display = "none";
}

from

https://www.eclipse.org/forums/index.php/t/457836/

but it does not seem to have any effect.
Any other ideas on how to achieve this?

Max

Warning No formatter is installed for the format ipb

Comments

  • Hi,

    Can you post the sample rptdesign for the same. As far as I know grid is something which doesnot repeat itself. You need table I think.

    Regards
    Shasha

  • If you are generating directly to a PDF as far as I know you can't. It works with Run and Render I have a report that only shows a statement in the master footer only for page one. If I go directly to PDF it is on every page.