Using the Printing Controls

Although it is possible to design forms that can be used to set all the PageSettings and PrinterSettings property values, it is easier to use the provided Windows components to set Page settings and Printer settings:

  • PageSetupDialog component

  • PrintPreviewDialog component

  • PrintPreviewControl control

  • PrintDialog component

Each of these is discussed in the following sections.

The PageSetupDialog Component

The PageSetupDialog component is the standard Windows Page Setup dialog box used in most Windows applications, as shown in Figure 11.2.

Figure 11.2. The Page Setup dialog box showing a portrait-oriented page.

You can experiment ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.