Quantcast
Viewing all articles
Browse latest Browse all 3636

How can I data-bind using IEnumerable?

I'm new to Crystal Reports and I have the task to upgrade an existing application from ASP.NET WebForms to Web API/Entity Framework.

 

Looking at the SetDataSource() member method it looks like Crystal Report allows to alternatively feed a DataSet based report with some arbitrary IEnumerable object.

 

I'm supposed to feed the report with data taken from web service, i.e. deserialized JSON data. And I wouldn't want to resort to the obsolete System.Data namespace any longer, particularly as this would require me to regain the whole database schema from an arbitrary object tree.

 

So what format does the IEnumerable overload need to match to have to it work on a Crystal report that has been generated based on a DataSet?

 

Thanks for enlightening me.


Viewing all articles
Browse latest Browse all 3636

Trending Articles