why the page header/footer not shown at first page of detail section?

Posted by: gli on 23 May 2018, 5:05 pm EST

  • Posted 23 May 2018, 5:05 pm EST

    Hi,
    please check the attached sample,
    the 1st page, is report header , it working well, I set the layout page header/foot to notshowinhderfdr and it works
    the 2nd page , it is the problem , this is the 1st page of detail section, it should have page header/footer but it does not , why?
    the 3+page, all of them are good, they are remaining page of detail section and I can see the page header/footer.

    please help!
  • Marked as Answer

    Replied 24 May 2018, 3:08 pm EST

    I have fixed it.
  • Replied 30 January 2019, 8:32 am EST

    How?
  • Replied 30 January 2019, 10:33 pm EST

    Hello,

    You can make use of the report's StartPage event to conditionally set the Visibility of PageHeader and PageFooter, as follows:
       private void Rpt_StartPage(object sender, C1.Xaml.FlexReport.ReportEventArgs e)
    {
    if (e.Page == 1)
    {
    rpt.Sections.PageHeader.Visible = false;
    rpt.Sections.PageFooter.Visible = false;
    }
    else
    {
    rpt.Sections.PageHeader.Visible = true;
    rpt.Sections.PageFooter.Visible = true;
    }
    }

    Using this code in the attached application, hides the PageHeader and PageFooter from the first page of the report only. These sections are visible on all other pages.
    You can learn more about the event from here:
    https://help.grapecity.com/componentone/NetHelp/FlexReportUWP/webframe.html#C1.UWP.FlexReport~C1.Xaml.FlexReport.C1FlexReport~StartPage_EV.html

    Let me know if you need further assistance.

    Best Regards,
    Esha
    FlexReport_UWP.zip
Need extra support?

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

Learn More

Forum Channels