PreviewPrintController Class
Specifies a print controller that displays a document on a screen as a series of images.
For a list of all members of this type, see PreviewPrintController Members.
System.Object
System.Drawing.Printing.PrintController
System.Drawing.Printing.PreviewPrintController
[Visual Basic] Public Class PreviewPrintController Inherits PrintController [C#] public class PreviewPrintController : PrintController [C++] public __gc class PreviewPrintController : public PrintController [JScript] public class PreviewPrintController extends PrintController
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
Typically, to use the print preview feature, you create an instance of a PrintPreviewControl or PrintPreviewDialog class and set its Document property. The PreviewPrintController is used by the PrintPreviewControl and PrintPreviewDialog classes, though you can use the PreviewPrintController when managing the display of your own print preview window.
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 OnEndPage method clears the Graphics, while the OnEndPrint method de-allocates the object.
For more information on printing, see the System.Drawing.Printing namespace overview.
Requirements
Namespace: System.Drawing.Printing
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Drawing (in System.Drawing.dll)
See Also
PreviewPrintController Members | System.Drawing.Printing Namespace | PrintDocument