Creating report programmatically with TRDX template

2 posts, 0 answers
  1. Alex
    Alex avatar
    3 posts
    Member since:
    Mar 2017

    Posted 19 Feb 2018 Link to this post

    Hi, how can i create a report  programmatically  using TRDX template. In particular, I am interested in putting my custom collection in DataSource.
  2. Silviya
    Silviya avatar
    434 posts

    Posted 22 Feb 2018 Link to this post

    Hello Alex,

    It is possible to create report definition dynamically using a TRDX template, but this is no trivial matter and we do not recommend it.
    Report definition is quite complex and creating it on the fly might lead to errors.

    If, however, this is necessary, you should deserialize the TRDX report/template using the ReportXmlSerializer Class to get all objects from the report definition. Then you could modify the report definition (including DataSource property) and serialize it back. Check this article for details and examples.

    For creating reports programmatically I suggest you to review also the 
    Programmatic Control of Reports and the Reporting API Reference chapters from our official documentation.

    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