Using Business Objects in the Report
Our sample projects and report templates can help you learn the basics of working with our products.Reports can be bound directly to your application's business objects — any
Register the objects. Register the collection under a name, then load a template built against it:
How it works. Field names in the template map straight onto the object's properties, so the report renders directly from live objects.
IEnumerable collection — without converting them to datasets first.Register the objects. Register the collection under a name, then load a template built against it:
var report = new StiReport();
report.RegData("EmployeeIEnumerable", CreateBusinessObjectsIEnumerable.GetEmployees());
report.Load(AssetLoader.Open(new Uri("avares://…/BusinessObjects_IEnumerable.mrt")));RegData(name, object)— exposes a business-object collection to the report under the given data-source name.- The report consumes the very domain classes your application already uses, with no dataset conversion.
How it works. Field names in the template map straight onto the object's properties, so the report renders directly from live objects.