O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

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

Printing

Although graphics and printing seem to be a world apart, the behind-the-scenes bits that make it work have a lot in common. In both cases, Silverlight needs a way to send text, shapes, and elements to another device—whether it's a computer monitor (through the display driver) or a printer (through the printer driver).

Silverlight's printing support is straightforward and somewhat limited. For example, it's up to you to decide how to break content over multiple pages and how to keep track of your position in a set of data. You also need to calculate the appropriate coordinates for each line, measure the size of the content you render, and adjust for headers and footers all on your own. However, Silverlight provides you with a useful shortcut ...

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