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

Object datasouce binding in reporting (xml content)

1 Answer 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
krishna surapaneni
Top achievements
Rank 2
krishna surapaneni asked on 27 Aug 2010, 06:49 AM
Hi telerik,

I have xml content in my database, How can i access it in my object datasource, in telerik reporting?
i can deserialise the xml into list of objects, and then i want to set it as object data source dynamically. if possible Please provide me any references on this..

Thanks & regards
Krishna.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Aug 2010, 08:00 AM
Hello Krishna,

You have a couple of options:

  1. (recommended) Create a typed DataSet from your XML. For more information on the typed DataSets please see here. Once you have the DataSet ready, run the Report Wizard and it will appear in the list of the available data sources; select it and follow the instructions of the wizard.
  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.

All the best,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
krishna surapaneni
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or