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

Posted by: gli on 24 May 2018, 2:05 am EST

    • Post Options:
    • Link

    Posted 24 May 2018, 2:05 am 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!

  • Posted 25 May 2018, 12:08 am EST

    I have fixed it.

  • Posted 30 January 2019, 5:32 pm EST

    How?

  • Posted 31 January 2019, 7:33 am 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