Hi
I'm using
Reporting: 6.2.13.110
WPF-Controls: 2012.3.1129.40
I upgraded from Q1/2012 to the version mentioned above and experience weird behaviour since then.
I use the ReportViewer in a MVVM Scenario where it is nested in a DataTemplate to dynamically toggle the view
based on the DataType of some property.
Report displays fine, but changing the Property to engage another datatemplate crashes the app.
There is a null reference exeption, and also "Dispatcher processing has been suspended, but messages are still being processed." - Exception.
ReportViewer looks like this:
I'm also wondering why the telerik people (documentation people) call this production code.
Look here: http://www.telerik.com/help/reporting/wpf-report-viewer-embedding-the-viewer.html
Following the example you get bloated with binding errors.
I know the reason for this to happen, but does a newbe?
Besides from that the VS-Report Designer is a whole mess in my opinion.
I still can't handle nested collections, there is groups disppearing or inacessible through the designview, just to mention a few.
Could just throw the whole reporting away!
Martin
I'm using
Reporting: 6.2.13.110
WPF-Controls: 2012.3.1129.40
I upgraded from Q1/2012 to the version mentioned above and experience weird behaviour since then.
I use the ReportViewer in a MVVM Scenario where it is nested in a DataTemplate to dynamically toggle the view
based on the DataType of some property.
<DataTemplate DataType="{x:Type local:ReportViewerViewModel}" x:Shared="False"> <local:ReportViewer /> </DataTemplate> <DataTemplate DataType="{x:Type local:PdfViewerViewModel}" x:Shared="False"> <local:PdfViewer DataContext="{Binding FilePath}" /> </DataTemplate>Report displays fine, but changing the Property to engage another datatemplate crashes the app.
There is a null reference exeption, and also "Dispatcher processing has been suspended, but messages are still being processed." - Exception.
ReportViewer looks like this:
<UserControl x:Class="Ra.WPF.ReportViewer"... Name="_this"> <Grid DataContext="{x:Null}"> <telerikReportViewer:ReportViewer Name="_rv" telerik:StyleManager.Theme="Windows7" ReportSource="{Binding DataContext.ReportSource, ElementName=_this}" /> </Grid></UserControl>I'm also wondering why the telerik people (documentation people) call this production code.
Look here: http://www.telerik.com/help/reporting/wpf-report-viewer-embedding-the-viewer.html
Following the example you get bloated with binding errors.
I know the reason for this to happen, but does a newbe?
Besides from that the VS-Report Designer is a whole mess in my opinion.
I still can't handle nested collections, there is groups disppearing or inacessible through the designview, just to mention a few.
Could just throw the whole reporting away!
Martin