Code: Select all
string xml = "<?xml version="1.0" encoding="utf-8" standalone="yes"?......." // bla bla bla
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
doc.Save(@"K:\temp.xml");
tempReport.Dictionary.Databases.RemoveAt(0);
Stimulsoft.Report.Dictionary.StiXmlDatabase myxml = new Stimulsoft.Report.Dictionary.StiXmlDatabase();
myxml.Alias = "XML";
myxml.Name= "XML";
myxml.XmlType = StiXmlType.Xml;
myxml.PathData = @"K:\temp.xml";
tempReport.Dictionary.Databases.Insert(0, myxml);
tempReport.Dictionary.Synchronize();
tempReport.Compile();
thanks in advance.
Alvin