Loading and Saving a Report Template
Our sample projects and report templates can help you learn the basics of working with our products.A report template can be loaded, rendered, and serialized to JSON — the basis for saving templates that users have edited.
Load, render, serialize.
How it works. The template round-trips through JSON, so an edited report can be persisted to a database or file and restored on demand.
Load, render, serialize.
Report = new StiReport();
Report.Load("Reports/TwoSimpleLists.mrt");
Report.Render(false);
// Serialize the template for storage
var reportJSON = Report.SaveToJsonString();Load— open a template from a.mrtfile or bytes.SaveToJsonString()— serialize the template to JSON; load it back later withLoadFromJsonString().
How it works. The template round-trips through JSON, so an edited report can be persisted to a database or file and restored on demand.