Create a Report Header

Top  Previous  Next

Create a Report Header

Top Previous Next

 

We’ll start this report by adding a ReportHeader band, this displays at the top of the first page of the report.

 

_img5.zoom82

 

 

First we’ll add our company logo..

 

_img6

 

Click and drag a PictureBox from the Tool Box to the ReportHeader band..

 

_img7.zoom85

 

Now, click the Image property in the Property Grid pane, the click the ellipsis button that appears..

 

_img8

 

This will display a File Open dialog to allow you to select the image for the logo..

 

_img9.zoom86

 

Next, click the Sizing property and select “AutoSize”, this will size the Picture Box to match the image you selected.

 

 

_img10

 

 

Next we will add a Label control to the ReportHeader by dragging and Dropping a Label from the Tool Box.

 

_img11.zoom85

 

We set the Text, Font attributes and Color using the properties highlighted below:

 

_img12.zoom61

 

We’ll finish off the ReportHeader by adding a report title (another Label control) and a horizontal line

(by dragging a Line from the Tool Box and setting its LineWidth and ForeColor properties).

 

_img13.zoom87

 

The ReportHeader is complete, next we’ll create the column headings, these will go in the PageHeader band which is repeated on every page of the report.