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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.