Registering an XML Data for the Report Template
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.Prepare the data in JavaScript, register it in the report dictionary, and render the template with those records.
Preparing the data. Read or create the data source, register it in the report dictionary, synchronize the schema, and render with the supplied records.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Preparing the data. Read or create the data source, register it in the report dictionary, synchronize the schema, and render with the supplied records.
var report = new Stimulsoft.Report.StiReport();
report.loadFile("../reports/SimpleList.mrt");
var dataSet = new Stimulsoft.System.Data.DataSet("Demo");
dataSet.readXmlSchemaFile("../reports/Demo.xsd");
dataSet.readXmlFile("../reports/Demo.xml");
report.dictionary.databases.clear();
report.regData("Demo", "Demo", dataSet);
report.renderAsync(function () { });Reading the schema (.xsd) first gives the dataset its structure, then the data (.xml) fills it. As with JSON, the dataset is registered under a name matching the template's data source.На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
