New to Telerik Reporting? Request free 30-day trial

Does Telerik Reporting support XML as a datasource?

Environment

Product Progress® Telerik® Reporting

Solution

You have a couple of options:

  1. (Recommended) Create a typed DataSet from your XML. Once you have the DataSet ready, use the ObjectDataSource Component and it will appear in the list of the available data sources; select it and follow the instructions of the wizard. For more information check typed DataSets MSDN article. For more information on binding to DataSet, see How to: Bind to a DataSet.

  2. Load the XML into a DataSet programmatically. Use the DataSet.ReadXml method to load the XML data into a DataSet and then pass it to the Report.DataSource property. The disadvantage of this approach is that the schema of the report's data source won't be available at the design time. This means that the Report Wizard won't be of any help. Anyway you still can create a report without it. You can use the Visual Studio Toolbox to select from the available items. For more information please see Designing Reports.

In this article