Posted 24 December 2024, 2:24 am EST
Hi Seiler,
You can use the following code in the Script section of your SectionReport to hide the PageHeader for the first page:
public int currentPage=0;
public void PageHeader_Format()
{
currentPage++;
if (currentPage == 1)
{
this.PageHeader.Visible = false;
}
else
{
this.PageHeader.Visible = true;
}
}
We have declared a class-level variable currentPage to track the current page number. Inside the PageHeader_Format event handler, the currentPage variable is incremented each time the event is triggered, as the event is fired for each page. If the currentPage equals 1, the PageHeader.Visible property is set to false to hide the header. For all other pages, the PageHeader.Visible property is set to true, ensuring that the header is displayed from the second page onward.
We hope this helps!
Attachment: HideHeader.zip