DevExpress Data Blog

LightSwitch Reporting - Showing your Reports in a Separate Screen

We have added a great new feature to our reporting offering in an upcoming minor release (v2011 vol 1.6): a custom print preview screen!

Now, instead of showing a report preview full-screen by calling the PrintPreview.Show() method as before, you can add a specialized screen to your application, …

LightSwitch Report Preview screen

… and in the body of its Activated() method call, associate the screen with the required XtraReport instance.
namespace LightSwitchApplication {
    public partial class ReportPreviewScreen {
        partial void ReportPreviewScreen_Activated() {
            // Assign the name of the report, which you want to preview in this screen.
            this.ReportTypeName = "LightSwitchApplication.XtraReport1";

The report will now appear in a separate tab (as opposed to full screen):

Report Preview for LightSwitch

In the above screenshot, you may have noticed the new Parameters button being added to the report preview toolbar – a subject of our next blog post.

As always, if you have any questions and/or comments, please do let us know!
Published Jul 14 2011, 05:12 PM by
Bookmark and Share


DevExpress Reporting Blog

In this blog post I will explain another small feature of XtraReports for LightSwitch: the ability to

July 20, 2011 12:22 PM

Visual Studio LightSwitch Team Blog

DevExpress has added LightSwitch support to their award winning reporting solution, XtraReports. This

July 20, 2011 4:01 PM

Chnaina Abdelaziz

I have to insert more then 500,000 rows into my reports, but this take much time, please how can i accelerate it, i did not lose any thing wich help me  :(

October 21, 2013 9:04 AM

About George (DevExpress)

Joined Developer Express on April 4, 2008

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at or call us at +1 (818) 844-3383


DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, Delphi, HTML5 or iOS & Android development. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2018 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners