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

ReportViewer.WPF Exception on Page Load

1 Answer 187 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 20 Jan 2012, 06:46 PM
Hi,

I am unable to get the ReportViewer for WPF to load. I have created a simple Class Library that contains my Report and data (.sdf SQL CE data file) and a Basic WPF Application to test the Report. The report loads and shows data fine, however, after adding the ReportViewer to the Main.xaml page I get an Exception when running the app?

"A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception."

If I remove the ReportViewer from the page, everything loads and runs fine? Below is the xaml that I added to the page...

xmlns:tr="clr-namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf"

<Grid>
   <tr:ReportViewer Name="reportViewer1" />
</Grid>

I have tried setting the Report but removed it to see if the Viewer would even load... It didn't. I have tried on two different machines and both fail? Is there more to this that I am not seeing? I watched the example on Telerik.tv and followed to the letter?

I am using the below versions -

Windows 7
Telerik.ReportViewer.Wpf (5.3.11.1116)
Telerik.Reporting (5.3.11.1116)

thanks,
SD.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 23 Jan 2012, 05:35 PM
Hello SD,

We could not reproduce such problem on our end. You can open the Visual Studio examples that come with the product installation, navigate to the WpfDemo and change the example so that the report is loaded upon WindowLoaded (or whichever event you refer to as Page Load) to verify that it works correctly.

You can compare the differences between your project and the available demo and if you are unable to identify the problem, please provide us with a sample project that exhibits the issue.

P.S. If you are using Prism, make sure it is the latest version as we've seen problems with older releases.

Greetings,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or