March 2010
Intermediate to advanced
1216 pages
33h 44m
English
Although WPF includes dozens of print-related classes (most of which are found in the System.Printing namespace), there's a single starting point that makes life easy: the PrintDialog class.
The PrintDialog wraps the familiar Print dialog box that lets the user choose the printer and a few other standard print options, such as the number of copies (Figure 29-1). However, the PrintDialog class is more than just a pretty window—it also has the built-in ability to trigger a printout.
To submit a print job with the PrintDialog class, you need to use one of two methods:
PrintVisual() works ...
Read now
Unlock full access