Hello,
I have a very simple scenario where I want to load a report created with the standalone designer in a WPF ReportViewer.
[Code Behind for Main Window]
InitializeComponent();
ReportViewer1 = new Telerik.ReportViewer.Wpf.ReportViewer();
Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
uriReportSource.Uri = @"./yop.trdx";
this.ReportViewer1.ReportSource = uriReportSource;
ReportViewer1.RefreshReport();
The ReportViewer is shown with the correct theme but the specified report (yop.trdx) failed to load. The report has only a static textbox in it (no datasource bindings)
My xaml look like:
<Window x:Class="App2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:tr="http://schemas.telerik.com/wpf"
xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
Title="MainWindow" Height="350" Width="525" telerikControls:StyleManager.Theme="Vista">
<Grid>
<tr:ReportViewer x:Name="ReportViewer1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
</Grid>
Could you please help me?
Thanks,
Thomas