
Advanced Programming Concepts • Chapter 6 259
indicate that this method provides the event handling for the PrintPage method of
the PrintDocument object.
On the next several lines, we declare variables that are important for the
spacing of our printer output.The single, sngCurY, contains our current vertical
position on the page.We use this to indicate when we need to go to the next
page.The single, sngLineHeight, contains the height of the lines on our page.This
is calculated by calling the GetHeight method of the Font object used to render
our text. Finally, we declare our Font object, oFont, which determines the charac-
teristics of the font used ...