Begins the control sequence that determines when and how to preview a page in a print document.
Assembly: System.Drawing (in System.Drawing.dll)
- Type: System.Drawing.Printing.PrintDocument
A PrintDocument that represents the document being previewed.
OnStartPrint creates the Graphics that is displayed during the print preview. After OnStartPrint is called, the method sets the Graphics to a graphic of a single page. The OnEndPage method clears the Graphics, while the OnEndPrint method deallocates the object.
Anti-aliasing, also known as gray scaling, makes the print preview look better. However, the use of anti-aliasing can slow down the rendering speed. For more information about anti-aliasing, see the UseAntiAlias property.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.