Hi, how can i create a report programmatically using TRDX template. In particular, I am interested in putting my custom collection in DataSource.
1 Answer, 1 is accepted
0
Silviya
Telerik team
answered on 22 Feb 2018, 04:52 PM
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.
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