This is a migrated thread and some comments may be shown as answers.

Datasourceses of TRDP file

1 Answer 159 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Iron
Alexander asked on 14 Sep 2016, 02:49 PM

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)?  

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 15 Sep 2016, 08:12 AM
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.

Regards,
Stef
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
Tags
General Discussions
Asked by
Alexander
Top achievements
Rank 1
Iron
Answers by
Stef
Telerik team
Share this question
or