Blogs

DevExpress Data Blog

This blog features all things having to do with data shaping, layout, and presentation!

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 George (DevExpress)
Bookmark and Share

Comments

 

DevExpress Reporting Blog said:

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 said:

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

July 20, 2011 4:01 PM

About George (DevExpress)

Joined Developer Express on April 4, 2008
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
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, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.