C# Visual Studion Report - Show header/footer on some pages only

Posted on 2007-10-20
Last Modified: 2013-12-17
I have created a report on Visual Studio (C#) using the report maker of Visual Studio. VS only has two options for showing the header on the Report Properties: Option 1. Show header on first page and Option 2. Show header on last page. The same thing with the footer: Option 1. Show footer on first page and Option 2. Show footer on last page.
I have been trying to have the header shown only on the first page of the report and the footer only on the last page of the report. So I checked option 1 for the header and option 2 for the footer. However, the header is shown on all the report pages except the last page and footer on all the report pages except the first page. Is there a way to fix this so that the header is shown only on the first page and the footer on the last page?
Question by:cscg1976
    LVL 9

    Accepted Solution

    Just don't make them header and footer.
    The options are for the situation where you don't want the header shown on the first page (i.e. you use a header like page:#     of:#      "The report name"  ) and you have a full title page before your report data where you don't want to display this header.
    The answer is therefore very simple: Don't use header/footer. Then your pseudo-header (the info on top of your report) will be shown only once, at the beginning, and the pseudo-footer only once, at the end.

    Author Comment

    thanks ropahoratiu. Stupid of me for not thinking about this simple solution. I was trying to find a more difficult solution. Thanks again.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now