hi there,
i have a class that represents an invoice,
it have two double fields and an List collection
the problem is i really don't know how to bind the report template that i have made by the designer and the data structure at runtime.
i don't know if i should use StiReport.RegBusinessObject() or StiReport.RegData()..??
and what does the first string parameter is supposed to be exactly..??
Business Object question
Business Object question
Hello,
Both methods register data in a data store of a report, to which a report generator will refer. The RegData method will register any object in an ADO.NET DataSet object. If you register a business object, it will be converted into a DataSet. The report generator works with data and ADO.NET DataSet methods. All data, registered this way, are presented in the form of a tree (from child element to the parent). The reporting tool can re-sort, group, filter, create new relationships in the data registered this way. The RegBusinessObject method registers the data as a business object. No conversion is performed. Data are presented as is. The data tree is displayed from the parent to slave. Also you cannot create new relations between objects. Also sometimes have some problem with anonymous types.
Thank you.
Both methods register data in a data store of a report, to which a report generator will refer. The RegData method will register any object in an ADO.NET DataSet object. If you register a business object, it will be converted into a DataSet. The report generator works with data and ADO.NET DataSet methods. All data, registered this way, are presented in the form of a tree (from child element to the parent). The reporting tool can re-sort, group, filter, create new relationships in the data registered this way. The RegBusinessObject method registers the data as a business object. No conversion is performed. Data are presented as is. The data tree is displayed from the parent to slave. Also you cannot create new relations between objects. Also sometimes have some problem with anonymous types.
Thank you.
-
- Posts: 2
- Joined: Wed Jul 11, 2012 6:36 am
Re: Business Object question
I have one group footer in report after databind, but it show under each databind detail row.
should i set some property or not?
When I change your master-detail sample about business object and add group header and footer for it, it show group header but not show group footer!
thanks for your attention...
should i set some property or not?
When I change your master-detail sample about business object and add group header and footer for it, it show group header but not show group footer!
thanks for your attention...