System.Windows.Forms.PrintDialog Class

Lets users select a printer and choose which sections of the document to print from a Windows Forms application.

See Also: PrintDialog Members

Syntax

[System.ComponentModel.DefaultProperty("Document")]
[System.ComponentModel.Designer("System.Windows.Forms.Design.PrintDialogDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")]
public sealed class PrintDialog : CommonDialog

Remarks

When you create an instance of System.Windows.Forms.PrintDialog, the read/write properties are set to initial values. For a list of these values, see the PrintDialog.#ctor constructor. To get printer settings that are modified by the user with the System.Windows.Forms.PrintDialog, use the PrintDialog.PrinterSettings property.

For more information about printing with Windows Forms, see the System.Drawing.Printing namespace overview. If you want to print from a Windows Presentation Foundation application, see the System.Printing namespace.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0