11.9. Printing

The System.Drawing.Printing namespace contains nearly all of the classes that are used to print text and graphics. Note that print preview functionality is provided by PrintPreviewControl, which is part of the System.Windows. Forms namespace. Table 11.2 shows some of the main classes found in the System.Drawing.Printing namespace.

Table 11.2. The main classes in the System.Drawing.Printing namespace and what they do
Class Description
PageSettings Specifies settings for one printed page.
PaperSize Specifies the characteristics (width, height, type) of a piece of paper.
PreviewPageInfo Specifies the print preview information for one printed page.
PrintController Controls the document printing process.
PrintDocument Main printing ...

Get A Programmer's Guide to .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.