Business Object question

Stimulsoft Reports.NET discussion
Post Reply
mostafaxx
Posts: 8
Joined: Mon May 14, 2012 2:37 pm
Location: Egypt

Business Object question

Post by mostafaxx »

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..??
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Business Object question

Post by Alex K. »

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.
farajzadeh
Posts: 2
Joined: Wed Jul 11, 2012 6:36 am

Re: Business Object question

Post by farajzadeh »

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...
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Business Object question

Post by Alex K. »

Hello,

Can you please send us your report on support@stimulsoft.com for analysis.

Thank you.
Post Reply