Completes the control sequence that determines when and how to preview a page in a print document.
Assembly: System.Drawing (in System.Drawing.dll)
OnStartPrint creates the Graphics that is displayed during the print preview. After OnStartPrint is called, the OnStartPage method sets the Graphics to a graphic of a single page. The method clears the Graphics, while the OnEndPrint method deallocates the object.