Page

The Page event occurs after a page is formatted but before it is printed. Use the Page event to customize the appearance of your printed reports by adding lines, circles, and graphics.

The event procedure in Hands-On 25-6 will draw a thick red border around the report pages. Notice that the DrawWidth method specifies the thickness of the line and the Line method draws a line with an upper-left corner at (0, 0) and the lower-right corner at (Me.ScaleWidth, MeScaleHeight). The ScaleWidth and ScaleHeight properties specify the width and height of the report.

0 0

Post a comment