Dynamic Data source with Native XML driver
I am trying to use dynamic data source for report ( XI ) with Native XML driver data.
My code :
this.crystalReportViewer1.SuspendLayout();
Report1 report = new Report1();
DataSet dataSet = new DataSet();
dataSet.ReadXml("resultTestReport.xml", XmlReadMode.ReadSchema);
dataSet.WriteXmlSchema("resultTestReport.ds");
try
{
report.SetDataSource(dataSet);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
this.crystalReportViewer1.ReportSource = report;
this.crystalReportViewer1.Refresh();
Gives me a message that it can't find the table and does not change the XML data source file
Thank you
|