DevExpress Reports Master Detail binding

Posts   
 
    
Austinn
User
Posts: 38
Joined: 25-Aug-2008
# Posted on: 05-May-2011 02:52:59   

Hello, I have orderEntity and fetched all the customers related to this order using prefetchpath, but I am unable to bind it to the report. Can somebody help me pleasee. I followed devExpress examples using DataSet and DataTable to build the master-detail report, they work fine, but unable to bind the report to our Entities.

Is there any senior who can share his experience.

Thanks

Austinn
User
Posts: 38
Joined: 25-Aug-2008
# Posted on: 05-May-2011 04:05:22   

Thanks, I got ths support from the below post...

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=4010&HighLight=1

Austinn
User
Posts: 38
Joined: 25-Aug-2008
# Posted on: 05-Jul-2011 10:46:17   

Yes I update the same post some time ago by saying I got the support, but I am back again because i am unable to achive what I was looking for. Actually by following the above post, I did build my master detail report, but now I am getting problem in displaying summaries. Yes for every group there is a Item Price column which I want to show the sum of that ItemPrice at the end of the group. I am trying to achive it in Group Footer but I am unable to achive it.

Below are my questions.

  1. Is it possible to use EntityCollection component with DevExpress XtraReports. If yes then how can I achive it and If no then how can we use LLBLGEN with DevExpress XtraReports.

I have found this resource from DevExpress Documentation site which is mentioned below, does our genereated TypedList implements the same interfaces what they are recomanding.? Can we achive the samething by following their article.?

DevExpress Documentation http://documentation.devexpress.com/#XtraReports/CustomDocument4046

I have searched alot on this forum but could't find proper answer. I appreicate if somebody experience person show some light.

Thanks and regards.

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 05-Jul-2011 11:36:24   

Which article are you talking about?

Austinn
User
Posts: 38
Joined: 25-Aug-2008
# Posted on: 05-Jul-2011 12:00:05   

Walaa wrote:

Which article are you talking about?

sorry friend, I update the post.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 05-Jul-2011 13:14:26   

Are you using the Adapter or the SelfServicing templateSet?

Austinn
User
Posts: 38
Joined: 25-Aug-2008
# Posted on: 05-Jul-2011 13:30:08   

I am using Adapter templateSet. I wish I could only use Entities rather typedlists with xtraReports

Austinn
User
Posts: 38
Joined: 25-Aug-2008
# Posted on: 05-Jul-2011 22:14:37   

Ok, once again. I manged to build my report (Group By). I used TypedList and also am able to calculate summaries as well.

Thanks

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 05-Jul-2011 22:17:26   

Our TypedLists do not implement ITypedList, so you will not be able to use them as described in the linked article. What issue do you get when trying to create summaries using entities ?

Matt

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39884
Joined: 17-Aug-2003
# Posted on: 06-Jul-2011 16:38:37   

Entities do implement ITypedList, or better: an entity collection does. It's bound to the control through an entityview2 which does implement the ITypedList interface.

A TypedList (yes this is confusing wink ) is a datatable. A datatable is bound to a control through a dataview, which also implements ITypedList.

So long story short: binding an entity collection should work .

Frans Bouma | Lead developer LLBLGen Pro
Austinn
User
Posts: 38
Joined: 25-Aug-2008
# Posted on: 06-Jul-2011 17:59:46   

Thanks everybody who have responded. I will try to bind the entities via entityview2 to xtrareport and will post update here.

One more question. I tried to bind the report runtime, after dragging the EntityCollection component on XtraReports and after selecting the factory when I try to save the project VS2010 gives error. Says could't convert entity collection to ........

Sorry forgot the error, but I can provide the complete error tomorrow.

Do you know what is casuing this error.

I am able to bind the entities on the forms, can I use the same (design time features ) on the reports or not ?

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Jul-2011 05:55:17   

Austinn wrote:

One more question. I tried to bind the report runtime, after dragging the EntityCollection component on XtraReports and after selecting the factory when I try to save the project VS2010 gives error. Says could't convert entity collection to ........

Sorry forgot the error, but I can provide the complete error tomorrow.

Do you know what is casuing this error.

I'm not aware of that problem. We will wait for the complete error info from you.

Austinn wrote:

I am able to bind the entities on the forms, can I use the same (design time features ) on the reports or not ?

You should Have you seen this video (go to second 01:00:00)?

David Elizondo | LLBLGen Support Team