Is it possible to bind CSLA BusinessListBase list to crystal report

Is it possible to bind CSLA BusinessListBase list to crystal report

Old forum URL: forums.lhotka.net/forums/t/11418.aspx


vladakg85 posted on Friday, June 15, 2012

I have a CSLA list class that is inherited from:

BusinessListBase

Now I wan't to pass this list somehow to crystal report document.
So I have tried this:

reportDocument1.SetDataSource(cslaListOfObjects);

But I get error that crystal report can't receive nullable parameters.
And also when I create crystal report I don't know how to set fields on report. Because I don't know what to put as data source type. 
So I wonder is it possible to somehow pass this list to CR and made it to work?

edore replied on Friday, June 15, 2012

Hi!

I never did this with Crystal Reports but used CSLA along with SQL Reporting Services and it makes a nice mix.  I can reuse my business rules to calculate values, create a list of dto's from my BO's and I bind the dtos to the report using an XML data source.

 

Hope this helps!

 

Etienne

vladakg85 replied on Friday, June 15, 2012

Hi,

Thanks for direction. When you make a dto from business object do you use some tool to generate XML or you write it all manually?

edore replied on Monday, June 18, 2012

Hi!

We generate dto's using CodeSmith with our own templates.

 

Good luck!

Copyright (c) Marimer LLC