Silverlight Reporting Overview
This project, a unofficial joint effort between Pete Brown and David Poll of Microsoft, provides a a very basic framework for building simple, short, multi-page reports using Silverlight 4.
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.
The initial release contains the source code of a simple report writer by Pete Brown. It includes:
- automatic pagination
- support for line items of varying height
- total page count
- 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.
Subsequent releases will incorporate datagrid printing and other features from David's code.
Here's a sample, printed using the XPS print driver in Windows 7. Note the headers and footers, page numbering, variable-height rows etc.
For additional information on the two posts that created this project, see:
Creating a Simple Report Writer in Silverlight 4 - Pete Brown
Making Printing Easier in Silverlight 4
Silverlight in Action, Revised Edition
(chapter 19 is on printing and builds a simple report)http://manning.com/pbrown/
Requires Silverlight 4 and Visual Studio 2010.