Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The 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 PrintPreviewControl only if you wish to write your own print-preview user interface. If you want the standard user interface, use a PrintPreviewDialog control; see PrintPreviewDialog Control Overview (Windows Forms) for an overview.
Key Properties
The control's key property is Document, which sets the document to be previewed. The document must be a PrintDocument object. For an overview of creating documents for printing, see PrintDocument Component Overview (Windows Forms) and Windows Forms Print Support. The Columns and Rows 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 UseAntiAlias property to true.
See Also
Reference
PrintPreviewDialog Control Overview (Windows Forms)
PrintPreviewControl Class
Other Resources
PrintPreviewControl Control (Windows Forms)
Dialog-Box Controls and Components (Windows Forms)