Using business objects in the report
Our sample projects and report templates can help you learn the basics of working with our products.A report can be bound to a business object registered from code before it is shown or designed.
Register the object.
How it works. The report renders directly from the registered object, so your domain classes drive the output with no dataset conversion.
Register the object.
Report = new StiReport();
Report.Load(await Http.GetByteArrayAsync("Reports/BusinessObjects.mrt"));
var list = GetBusinessObject();
Report.RegBusinessObject("MyList", list);
Report.Dictionary.Synchronize();RegBusinessObject(name, object)— exposes an in-memory object as a data source under the given name.Dictionary.Synchronize()— generates the fields that match the object's properties.
How it works. The report renders directly from the registered object, so your domain classes drive the output with no dataset conversion.