Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

16: Using Common Dialogs > Print Preview

Print Preview

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.

PrintPreviewDialog

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial