Page 1 of 1

XML Data Source

Posted: Tue May 29, 2012 2:57 am
by Mixxxa
Hello! Thank you again for the outstanding piece of software!

I have a question - there is an XML file I got from SQL request:

Code: Select all

DataTable dt = GetSomeDataTable();

foreach (DataRow dr in dt.Rows)
     {
          doc = new XmlDocument();
          doc.LoadXml((string)dr["resxml"]);
          ds = new DataSet();
          ds.ReadXml(new XmlNodeReader(doc));
     }
So here I have a DataSet with XML inside. How can I attach this XML to my report as DataSource?

I tried something like:

Code: Select all

 ds.Tables[0].TableName = "DataSource1";
 report.DataSources.Clear();
 report.RegData("DataSource1", ds.Tables[0]);
 report.Dictionary.Synchronize();
but it does not seem to work.

Any Ideas?

Thank you.

XML Data Source

Posted: Tue May 29, 2012 3:36 am
by Mixxxa
Sorry, I just solved that ))) was my fault. Thank you!

XML Data Source

Posted: Tue May 29, 2012 11:42 pm
by Andrew
Hello,

That's great!
Thank you.