Hello All! I am having some difficulties debugging an issue with the ReportViewer not showing the rendered Report. The Output states that the report was rendered in X seconds. My report xaml is as follows:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:tr="http://schemas.telerik.com/wpf" x:Class="FRAC_FLOW.TestReport"
Title="Report Viewer Window">
<Grid x:Name="LayoutRoot">
<Grid Margin="20" >
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<tr:ReportViewer Grid.Row="0" x:Name="ReportViewer1"/>
</Grid>
</Grid>
</Window>
I am setting the source and parameters in the constructor:
public TestReport() { InitializeComponent(); Telerik.Reporting.Parameter parm = new Telerik.Reporting.Parameter { Name = "JobId", Value = "7215" }; Telerik.Reporting.Parameter parm1 = new Telerik.Reporting.Parameter { Name = "Date", Value = DateTime.Now.ToShortDateString() }; var reportSource = new UriReportSource(); reportSource.Uri = new Uri("Reports/ReplacementParts.trdp", UriKind.RelativeOrAbsolute).ToString(); ReportViewer1.ReportSource = reportSource; ReportViewer1.ReportSource.Parameters.Add(parm); ReportViewer1.ReportSource.Parameters.Add(parm1); ReportViewer1.RefreshReport(); }