O'Reilly logo

Beginning Silverlight 5 in C#, Fourth Edition by Robert Lair

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  15

Printing in Silverlight

One of the features most requested by the Silverlight community has been client-side printing support. Silverlight 5 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required