Error set DataSource for Report

2 posts, 0 answers
  1. Tuan
    Tuan avatar
    8 posts
    Member since:
    Apr 2018

    Posted 02 May 2018 Link to this post

    I have 2 project:

    1. Angular (pictrure: 1.JPG)

    2. Rest Service

    - I used class MyResolver() (pictrure: 2.jpg)

    Error function DeserializeReport

  2. Katia
    Katia avatar
    760 posts

    Posted 07 May 2018 Link to this post

    Hello Tuan,

    Deserialization will only be required for XML report definitions (TRDP or TRDX reports). In your scenario, the report is specified by its assembly-qualified name which means that it is designed in Visual Studio report designer. Therefore, you can work directly with report class inside custom report resolver, for example:
    internal class MyResolver : IReportResolver
           public ReportSource Resolve(string report)
               Report reportInstance = null;
               if (report.Contains("1"))
                   reportInstance = new Report1();
                   reportInstance.DataSource = dataSource;
               return reportInstance;

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top