Q1-2015: ReportViewer has no ReportSource property in XAML

2 posts, 0 answers
  1. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 23 Mar 2015 Link to this post

    Using the latest version of Telerik Reporting (Q1/2015) I tried to create a ReportViewer according to the example "Using Telerik Reporting in Applications - WPF Application - Manual Setup" and set the ReportSource declaratively. However there seems to be no ReportSource property in ReportViewer, at least none that I can use in XAML. I added all necessary assemblies and themes, I can see the ReportViewer in design mode, but can't set this property. What am I doing wrong?

  2. Nasko
    Nasko avatar
    1077 posts

    Posted 26 Mar 2015 Link to this post

    Hello Neils,

    You can set the report source of the viewer declaratively in the XAML, as demonstrated in the WpfDemo project which comes with the installation of Telerik Reporting on your machine (C:\Program Files (x86)\Telerik\Reporting Q1 2015\Examples\CSharp\WpfDemo):
    <tr:ReportViewer Grid.Row="1" x:Name="ReportViewer1" HorizontalAlignment="Stretch">
            <telerikReporting:TypeReportSource TypeName="Telerik.Reporting.Examples.CSharp.ReportCatalog, CSharp.ReportLibrary" />

    Also the report source property can be configured using the properties window: screenshot.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top