The Page Header section repeats itself on every page. For the
quarterly sales sample we want to repeat the company logo and company name. The
image for the logo can be found with the sample code that you can download.
Make sure you copy logo.bmp into your web site project. You can simply copy
the file using Windows Explorer into the web site folder and then refresh the
project in Visual Studio for it to appear in the Solution Explorer. Follow
these steps to create the page header.
1.
Make the height of the Page Header section taller by placing your mouse
pointer over the top of the Details section. The mouse pointer should change to
a horizontal bar. Once you see the horizontal bar for the mouse pointer, click
and drag down. This will make the section larger.
2.
Right click on the white space in the Page Header section and select
InsertàPicture… from the pop-up
menu. Select the logo.bmp file and click Open. Drop the picture in the upper
left hand corner of the page header section.
3.
Using the Properties window change the Height property of the picture to
2058 and the Width to 3066.
Figure 5

4.
Next you need to add the company name. Right click in the white space
next to the picture and select InsertàText
Object from the pop-up menu. Drop the text object to the right of the picture.
5.
Enter "Adventure Works Cycle" for the text. Be sure not to hit
the Enter key when you are done typing. To stop editing the text object click
somewhere else on the report. If you press the Enter key, it will put a hard
return in the text object.
6.
Change the Height property of the text object to 720 and set the Width
to 8160.
7.
Right click on the text object and click Format Object from the pop-up menu.
This dialog box gives you more options for formatting than the Properties
window.
8.
Click the Font tab. Change the font size to 28 and the color to Blue.
9.
Click the Paragraph tab. Change the horizontal alignment to Centered and
click OK.
Figure 6
