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.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.