Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/printpreviewcontrol-control-overview-windows-forms.md
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

2.0 KiB

title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
title ms.date f1_keywords helpviewer_keywords ms.assetid
PrintPreviewControl Control Overview 03/30/2017
PrintPreviewControl
print preview
PrintPreviewControl control
4513c6c7-5e9b-4f4c-82ca-00f993a26955

PrintPreviewControl Control Overview (Windows Forms)

The Windows Forms xref:System.Windows.Forms.PrintPreviewControl is used to display a PrintDocument as it will appear when printed. This control has no buttons or other user interface elements, so typically you use the xref:System.Windows.Forms.PrintPreviewControl only if you wish to write your own print-preview user interface. If you want the standard user interface, use a xref:System.Windows.Forms.PrintPreviewDialog control; see PrintPreviewDialog Control Overview for an overview.

Key Properties

The control's key property is xref:System.Windows.Forms.PrintPreviewControl.Document%2A, which sets the document to be previewed. The document must be a xref:System.Drawing.Printing.PrintDocument object. For an overview of creating documents for printing, see PrintDocument Component Overview and Windows Forms Print Support. The xref:System.Windows.Forms.PrintPreviewControl.Columns%2A and xref:System.Windows.Forms.PrintPreviewControl.Rows%2A properties determine the number of pages displayed horizontally and vertically on the control. Antialiasing can make the text appear smoother, but it can also make the display slower; to use it, set the xref:System.Windows.Forms.PrintPreviewControl.UseAntiAlias%2A property to true.

See also