WPF Reporting Webinar–Making a Drill Through Report

DevExpress Data Blog
18 July 2011

Hey guys! Last week we did a webinar on some of the cool features we have available in WPF in conjunction with reporting. We wanted to post some notes to help you get started with drill-through reporting in WPF as well as provide a recap of the things we discussed in the webinar.

WPF Reporting Webinar

The new WPF report preview features we covered at the end of the webinar include:

The meat of the webinar centered around actually taking advantage of some of the interactive preview events we added in WPF and Silverlight. We used some of these events (the PreviewClick, PreviewDoubleClick, and PreviewMouseMove) to create an interactive drill through Orders/Invoice report. Here is what you can expect:

  1. A brief introduction to MVVM and how to use it in conjunction with reporting
  2. A brief demonstration of our DockLayoutControl to set up a standard layout in WPF
  3. A demonstration of the interaction between the ViewModel class an the View using standard binding to Properties and Commands
  4. The creation of an interactive report!

The Orders report was simply a report detailing all of the orders in the Northwind database:

WPF Orders Report

We used the PreviewMouseMove in conjunction with the report label’s tag to indicate that an element of the report was indeed clickable. Then we used the PreviewClick event to trigger a report change in the WPF Viewer:

WPFSample2

In addition to loading the Invoice report, the event also signaled the Orders button to be visible via the binding (without having to do much else).

Want to play with the code? Jump on over to our support center to download the sample.

As always, if there are any comments and/or questions, feel free to get a hold of me!

Seth Juarez
Email: sethj@devexpress.com
Twitter: @SethJuarez

Want The Best Reporting Tool Ever?

Get The No-Compromise Reporting Tool for WinForms, ASP.NET, Silverlight and WPF! - Native integration with DevExpress WinForms and ASP.NET Controls, unequalled design-time productivity, industrial-grade features. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

Let us know what you think of our Reporting Suite by rating it in the VS Gallery!

Follow SethJuarez on Twitter

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.