Chapter 15. Printing in Silverlight

One of the features most requested by the Silverlight community has been client-side printing support. Silverlight 4 includes a new printing API that allows developers to enable client printing from a Silverlight application. In this chapter, we will explore the new printing API and run through some exercises to see printing in action.

The Printing API

The primary class that controls printing from a Silverlight application is the PrintDocument class. Let's take a look at the PrintDocument class and its members.

PrintDocument Events

The action of opening the print dialog box and printing is initiated by the Print method. This method triggers three events in the following order: The BeginPrint event is fired when ...

Get Beginning Silverlight 4 in C# now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.