Datasourceses of TRDP file

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    22 posts
    Member since:
    May 2016

    Posted 14 Sep Link to this post

    How can I get info abut datasources, i have in a trdp file.

    I can unpack file to report object, unfortunatly i cannot found any Public property contains datasources. Is it possible to figure out at run time Which Datasources (at least datasource names and Attached Object class names for ObjectDatasources)?  

  2. Stef
    Stef avatar
    2930 posts

    Posted 15 Sep Link to this post

    Hi Alexander,

    Information about data items and their data sources can be obtained from the items. After getting the Telerik.Reporting.Report object you can iterate its Items collection and check for DataItem and its DataSource property.

    Please consider the example in Changing the connection string dynamically according to runtime data.

    Telerik by Progress
    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
  3. DevCraft banner
Back to Top