Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You can use Print Preview so that the user can see what the printout will look like. Implementing Print Preview can be easily done in .NET — you can use a PrintPreviewControl class that is used to preview the document inside a form to show how it will be printed. The PrintPreviewDialog is a dialog that wraps the control.
If you look at the properties and inheritance list from the MSDN documentation of the PrintPreviewDialog class, you can see that it is actually a Form and not a wrapped common dialog — the class derives from System.Windows.Forms.Form, and you can work with it as with the forms you created in Chapter 15.
In the following Try It Out, you add a PrintPreviewDialog class to the Simple Editor application.