I have a problem with using of XML files as DataSet.
I have initialized the reporting with a dictionary coming from a XSD file and a XML file, creating the relations, and placing components into the report using the columns.
The preview shows the informations from the XML file.
Now I want to change the data coming from another XML file using the same XSD file, and all I have is a blank page.
If I test the new XML file into the report editor I have a good preview of it.
So I think the problem is coming from my code:
Code: Select all
			DataSet dataSet = new DataSet();
			//using (TextWriter tw = new StreamWriter("Project.xml", false))
			//{
			//	tw.Write(sw.ToString());
			//}
			//dataSet.ReadXml("Project.xml");
			//dataSet.ReadXmlSchema("Source.xsd");
			dataSet.ReadXml(new StringReader(sw.ToString()));
			StiReport report = new StiReport();
			report.Load("Report.mrt");
			report.Dictionary.Databases.Clear();
			report.RegData(dataSet);
			report.Dictionary.Synchronize();
			report.Render();
I have also tested with an external file and with a direct stream (as not commented) and I have the same result...
Can you tell how I can resolve my problem please?
Another thing, by the preview tab, if I export the report in Word format I don't have the picture in it, but if I export it in PDF format I have the picture. Can you try it ?
Thank you.
 ... I need to reinstall it.
 ... I need to reinstall it.