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

Read + Modify *.trdx XML before instantiating?

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Xorcist
Top achievements
Rank 1
Xorcist asked on 09 Jan 2017, 06:30 PM

Does anyone have an example of pre-processing the XML of a *.trdx file, then creating an InstanceReportSource from that? I'd like to be able to update specific text, html links, and objectdatasources within the XML directly. I'm note sure if there is a way to deserialize from an XmlDocument into a Report...

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 10 Jan 2017, 04:40 PM
Hello Xorcist,

Below is a quote from our response in your support ticket on the same question:
"To get the ObjectDataSource from a TRDX report you need to:

1. Deserialize the TRDX report to a report instance. This is further described in the Serializing Report Definition in XML help article. If you are using the new TRDP format, you will need to check the Report Packaging help article.

2. To find the data source first you need to find the data item (Report, Graph, Map, etc.) which is connected to the data source, as shown in the Accessing Report Items Programmatically help article.

3. After you access the data item, you can get the data source
"

The flow of operations is illustrated in my post here (the example is in the context of the HTML5 Viewer and Reporting REST service).

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
Xorcist
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or