This is a migrated thread and some comments may be shown as answers.

Blank report

2 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 19 Aug 2014, 12:03 PM
Hello !

I'm using WPF Telerik Reporting Q2 2014 in my application. In one of my reports, I've a table and a chart. Both of them have a different SqlDataSource ( using parameterized stored procedure). My report DataSource is null.   When I preview the report, it works fine and I can see the data. However, when I render the report in the reportviewer, nothing is being displayed. I'm using the following code:

            Report report = new Report();
            report .ReportParameters["StartDate"].Value = this.StartDate;
            report .ReportParameters["EndDate"].Value = this.EndDate;
            InstanceReportSource reportSource = new InstanceReportSource();       
            reportSource .ReportDocument = report ;
            telerikReportsViewer.ReportSource = reportSource ;

Am I missing anything ? Please guide.

2 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 20 Aug 2014, 06:47 AM
Hello Josh,

Please check if the created instance is not of other type than the type of your report. Then verify the viewer's resources are loaded.

In general, as of Q1 2014 the WPF/Silverlight ReportViewer uses implicit styles instead of the StyleManager to apply themes. More details how to update your project and how to troubleshoot possible issues that may appear are described in the following forum thread: Upgrade to 2014 Q2 SP1 Reporting.

The latest available Telerik Reporting release Q2 2014 SP1 version 8.1 14.807is built against UI for WPF Q2 2014 SP1 version 2014.2.729.40. Thus you will need to download and the corresponding UI for WPF official or a greater version.

The only files part of Telerik Reporting are the Telerik.ReportViewer.Wpf.dll and Telerik.ReportViewer.Wpf.xaml. The rest files should be updated from the UI for WPF product folder.

Details how to add a WPF ReportViewer are available in the How to: Add report viewer to a WPF application help article. Also the following blog post elaborates on all strategies for using the WPF ReportViewer with the existing UI for WPF assemblies (NoXAML and full): Setting a theme of the WPF/Silverlight Report Viewer (Q1 2014 and later).


You can also check the local demos installed by default under C:\Program Files (x86)\Telerik\Reporting Q2 2014\Examples\CSharp\WpfDemo.


I hope the above information is helpful.


Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Josh
Top achievements
Rank 1
answered on 20 Aug 2014, 10:23 AM
Bingo !

Thanks Stef. I missed out adding report viewer's resources. 
Tags
General Discussions
Asked by
Josh
Top achievements
Rank 1
Answers by
Stef
Telerik team
Josh
Top achievements
Rank 1
Share this question
or