Footer disappears on 1 page report when PrintOnLastPage = False and PrintOnFirstPage = True

1 Answer 245 Views
Report Designer (standalone)
Skylor
Top achievements
Rank 1
Skylor asked on 07 May 2021, 07:07 PM | edited on 07 May 2021, 07:08 PM

I have a  one page report that has a large image that appears conditionally on a second page.  We want this second page to only be the image and not include the header and footer.  When the header settings are set to PrintOnLastPage = False and PrintOnFirstPage = True, it works as intended where it appears on the first page always (whether the report is 1 page or 2 pages) and never on the second page.  The Footer, on the other hand, with the same settings (PrintOnLastPage = False and PrintOnFirstPage = True) will appear at the bottom of the first page on 2 page reports, but disappears entirely when the report is only 1 page.  

I am trying to figure out why the header and footer seem to act differently even though they have the same Behavior settings. I would like the footer to act just like the header- where it always appears on the first page (for 1 and 2 page reports) and never on the second page, if there is a second page.  I apologize if something like this has been asked before, but I could not find anything.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 12 May 2021, 12:10 PM

Hi Skylor,

The observed behavior is expected as for the PageHeader PrintOnFirstPage has priority over PrintOnLastPage, and vice-versa for the PageFooter. Hence, when there is only one page, it is both the first and the last and based on the above priority, the PageHeader will be displayed, whereas the PageFooter won't.

To work around this, you may use Bindings or Conditional Formatting to control the Visible property of the PageFooter rather than using the above properties. For example, you may introduce a Conditional Formatting rule where when the condition 'PageNumber > 1' is fulfilled, the PageFooter -> Visible becomes False. I have attached a sample report demonstrating this. You may switch between the two CsvDataSources to observe the behavior with 1 and 2 pages.

Regards,
Todor
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Report Designer (standalone)
Asked by
Skylor
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or