Posted 18 May 2021, 4:34 am ESTI 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?
Stop Page Header From Printing on First Page
Posted by: mwebster on 18 May 2021, 4:34 am EST
Replied 18 May 2021, 4:59 pm ESTHello,
>>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.
Replied 18 May 2021, 10:25 pm ESTSo 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 ESTHello 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.
Replied 19 May 2021, 9:38 pm ESTI 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 ESTHello 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.
Replied 20 May 2021, 9:40 pm ESTThank-you!