Hello,
is there a more complex sample for using XML as report datasource available? I would like to assign XML data and XSD schema file at runtime before rendering the report?
Thanks
Thorsten Pontow
Sample for XMLDatabase
Sample for XMLDatabase
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: Sample for XMLDatabase
Hello.
Here is a sample code how to use XML data:
Thank you.
Here is a sample code how to use XML data:
You should remove all Data Sources and Connections if there is any one in your report to prevent a naming collision.DataSet demoDataSet = new DataSet();
demoDataSet.ReadXmlSchema(@"D:\Data.xsd");
demoDataSet.ReadXml(@"D:\Data.xml");
rep.Dictionary.Databases.Clear(); // Remove all Connections
rep.Dictionary.DataSources.Clear(); // Remove all Data Sources
rep.Dictionary.ImportXMLSchema(demoDataSet);
rep.RegData(demoDataSet);
rep.Dictionary.Synchronize() // This method could be use instead of ImportXMLSchema() method.
Thank you.