Crystal Reports - How to suppress a page header on the first page of a group?

偶尔善良 提交于 2019-12-18 13:08:44

问题


I have a report where each group is about 5-7 pages long.

I need to suppress the page header on the first page of each group

How can I do this?


回答1:


Mark Bannister's suggestion is a good way to go. If you're looking for a step-by-step, here is my $0.02:

  1. Open your section expert (right click on some white space, you should see it come up).

  2. Go to the options for the group footer and turn on reset page numbers after. You should see the page numbers reset at the beginning of each report.

  3. Also in the section expert, go to the options for the page header and click on the blue button next to the Suppress (No Drill-Down) option.

  4. In the Formula Editor, enter PageNumber=1




回答2:


If you have reset the page number to 1 on change of group (as mentioned in your other question), then enter the formula

PageNumber=1

in the "Suppress (No Drill-Down)" formula option in the Section Expert for the Group Header section, in the Crystal Reports Designer.




回答3:


To hide the header for pages that are not page 1, you would change the Formula Editor, enter PageNumber > 1




回答4:


Place the following code to your Crystal Report Designer. Use the same code for your page footer.

'--------for Header--------------------------------------------------
Private Sub rptPageHeader_Format(ByVal pFormattingInfo As Object)
    If PageNum.Value = 1 Then
        rptPageHeader.Suppress = True
    Else
        rptPageHeader.Suppress = False
    End If
End Sub
'-------------------------------------------------------------------


来源:https://stackoverflow.com/questions/3199339/crystal-reports-how-to-suppress-a-page-header-on-the-first-page-of-a-group

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!