Silverlight Reporting Sample Overview

This project, a unofficial project by Pete Brown of Microsoft, provides a a very basic framework for building simple, short, multi-page reports using Silverlight 5.

The intent is not to be an all-encompassing reporting solution, or a solution for large reports. Instead, this is a set of code you can build upon to create short (2-5 page) reports from your Silverlight applications.

Currently the sample consists of the full source code of a simple report writer. It includes:
  • automatic pagination
  • support for line items of varying height
  • total page count
  • templating
  • page headers and footers
  • report footer with support for calculated fields
  • events to allow hooking into printing at various stages

It does not include grouping, sections, cover pages, or other reporting tasks better suited to a more complete report writer.

Here's a sample, printed using the XPS print driver in Windows 7. Note the headers and footers, page numbering, variable-height rows etc.

pmb_sample_report.jpg

Additional Information

For additional information on the two posts that created this project, see:

Creating a Simple Report Writer in Silverlight 4 - Pete Brown

http://10rem.net/blog/2010/05/09/creating-a-simple-report-writer-in-silverlight-4

Making Printing Easier in Silverlight 4

http://www.davidpoll.com/2010/04/16/making-printing-easier-in-silverlight-4/

Silverlight 5 in Action

(chapter 31 is on printing and builds a simple report similar to the code here)
http://manning.com/pbrown2/

System Requirements

Requires Silverlight 4 and Visual Studio 2010.

Last edited Jan 7, 2012 at 6:51 AM by Psychlist1972, version 17