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

Posted on 2007-10-20
Medium Priority
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

Accepted Solution

ripahoratiu earned 2000 total points
ID: 20121268
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

ID: 20121429
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 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