Printing in Windows Forms consists primarily of using the PrintDocument Component (Windows Forms) component to enable the user to print, and the PrintPreviewDialog Control (Windows Forms) control, PrintDialog Component (Windows Forms) and PageSetupDialog Component (Windows Forms) components to provide a familiar graphical interface to users accustomed to the Windows operating system.
Typically, you create a new instance of the PrintDocument component, set the properties that describe what to print using the PrinterSettings and PageSettings classes, and call the Print method to actually print the document.
During the course of printing from a Windows-based application, the PrintDocument component will show an abort print dialog box to alert users to the fact that printing is occurring and to allow the print job to be canceled.
Explains how to use the PrintDocument component to print from a Windows Form.
Explains how to modify selected print options programmatically using the PrintDialog component.
Describes changing the printer to print to using the PrintDialog component at run time.
Describes sending graphics to the printer.
Describes sending text to the printer.
Explains how to alert users to the completion of a print job.
Shows how to print a copy of the current form.
Shows how to use a PrintPreviewDialog for printing a document.
Explains usage of the PrintDocument component.
Explains usage of the PrintDialog component.
Explains usage of the PrintPreviewDialog control.
Explains usage of the PageSetupDialog component.
Describes the classes in the System.Drawing.Printing namespace.