System.Drawing.Printing.PrintDocument.Print Method

Starts the document's printing process.


public void Print ()


Specify the output to print by handling the PrintDocument.PrintPage event and by using the System.Drawing.Graphics included in the System.Drawing.Printing.PrintPageEventArgs.

Use the PrinterSettings.PrinterName property to specify which printer should print the document.

The PrintDocument.Print method prints the document without using a print dialog. Use a System.Windows.Forms.PrintDialog when you want to offer the user the ability to choose print settings.


If an exception that is not handled by the PrintDocument.Print method is thrown during printing, the printing of the document is aborted.


Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0,