» Home
» Tutorials
» Search  
» Contact us 

Home » Tutorials » Introduction to Visual Basic .NET » Chapter 7

Chapter 7: Displaying Dialog Boxes
7.6: The PrintDialog Control
7.6.3: The PrintDocument Class

The PrintDocument Class

Before you can call the ShowDialog method of the PrintDialog control, you have to set the Document property of the PrintDialog class. This property accepts a PrintDocument class, which is used to obtain the printer settings and can send output to the printer. This class requires the System.Drawing. Printing namespace, so you must include this namespace before attempting to define an object that uses the PrintDocument class.

 

The Properties of the PrintDocument Class

Before you continue, take a look at some of the important properties of the PrintDocument class, listed in the following table.

 

click next Page - Printing a Document.

Home | Link to Us | Partner Links | About us | Contact us

Copyright © 2009-2012 F1tutorials.com | All Rights Reserved