Stop Page Header From Printing on First Page

Posted by: mwebster on 18 May 2021, 4:34 am EST

  • Posted 18 May 2021, 4:34 am EST

    I have a report (Attached) that I am creating which has a report header and a page header. The page header prints on the first page right after the report header. Is there any way to stop it from doing that?
  • Replied 18 May 2021, 4:59 pm EST


    >>The page header prints on the first page right after the report header.
    It is the expected behavior and this is how sections render in FlexReport. Please see the following documentation showing the same:

    If you do not want to show any section, you can hide it by setting the Visible property of that section to false.

    Note: We do not see any attachment in your post.

    Prabhat Sharma.
  • Replied 18 May 2021, 10:25 pm EST

    So there is no way to show the page header on every page except for the first one other than forcing a page break after the report header?
  • Replied 19 May 2021, 5:16 pm EST

    Hello Mike,

    The PageHeader renders on each page at the top and the ReportHeader renders only on the first page. For rendering PageHeader you do not need to set any page break property.

    If you are facing any issue with your report then you can share it or you can modify any report from the FlexCommonTasks.flxr from the product samples.

    Prabhat Sharma.
  • Replied 19 May 2021, 9:38 pm EST

    I understand that. The issue that I am having is that the report header shows and then. half-way down that page, after the content of the report header, the page header also shows. I just want to find out if the page header can be suppressed on the first page only.
  • Marked as Answer

    Replied 20 May 2021, 4:50 pm EST

    Hello Mike,

    You can use the below-given code in your PageHeader.OnFormat property to hide the PageHeader of the first page:

    If Page=1 Then
    PageHeader.Visible = False
    PageHeader.Visible = True

    Please find the attached report implementing the same.

    Prabhat Sharma.
  • Replied 20 May 2021, 9:40 pm EST


Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels