Share via


How to: Add, Hide, and Remove Page Headers and Footers (Visual Studio Report Designer)

You can add headers and footers to a report and then specify properties to determine whether they appear on the first or last page.

  1. Open a client report definition (.rdlc) file in graphical design mode.

  2. On the Report menu, click Page Header or Page Footer. Page Header and Page Footer are toggle items on the Report menu. When enabled, a Page Header or Page Footer section appears on the design surface.

    Alternatively, right-click in the empty area outside of the design surface, and then click Page Header or Page Footer.

  3. Drag any of the following items from the Toolbox to the Page Header or Page Footer area:

    • Textbox

    • Line

    • Rectangle

    • Image

  4. Set properties on the Page Header or Page Footer to add borders, background images or colors, adjust width, or suppress headers or footers on the first page. To set these properties, right-click the Page Header or Page Footer area and select Properties.

  1. Open a report in Layout view.

  2. On the Report menu, click Page Header or Page Footer to remove it from the report.

    Alternatively, right-click in the empty area outside of the design surface, and then click Page Header or Page Footer.

    Note

    When you remove a page header or footer, you delete it from the report. Any items that you previously added to the page header or footer will not reappear if you subsequently add them again.

  1. In Layout view, click the page header or page footer.

  2. In the Properties window, for the PrintonFirstPage or PrintonLastPage property, select False.

See Also

Concepts

Defining Page Size and Page Breaks in a Report (Visual Studio Report Designer)
Adding Page Headers and Page Footers to a Report (Visual Studio Report Designer)