April 2014
Intermediate to advanced
960 pages
22h 9m
English
This appendix provides information about printing and the graphics classes used by Windows Forms applications. Printing is different in Windows Forms and WPF applications. The next sections explain how to print in a Windows Forms application. The sections after that explain how to print in a WPF application.
The following section explains the basic printing process in a Windows Forms application. The section after that summarizes graphics classes and methods used to print in that kind of application.
The following steps summarize how to print in a Windows Forms application.
PrintDocument object either at design time or at run time.PrintDocument object’s Print method.PrintPreviewDialog:
PrintPreviewDialog object either at design time or at run time.Document property equal to the PrintDocument object you created in Step 1.ShowDialog method to display it.PrintPreviewControl:
PrintPreviewControl object either at design time or at run time.Document property equal to the PrintDocument object you created in Step 1.PrintDocument object’s events to generate the printout.The following list summarizes the events raised by the PrintDocument object.
Read now
Unlock full access