A report's data can be supplied entirely from the controller instead of being stored in the template — clear the template connections and register a fresh dataset.

Load, clear connections, register data. In the GetReport action:
var report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, "Reports/TwoSimpleLists.mrt"));

report.Dictionary.Databases.Clear();

var data = new DataSet();
data.ReadXml(StiNetCoreHelper.MapPath(this, "Reports/Data/Demo.xml"));
report.RegData(data);

return StiNetCoreViewer.GetReportResult(this, report);

How it works. The report is assembled server-side on each request, so its data can come from anywhere the controller can reach.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.