This is a migrated thread and some comments may be shown as answers.

Binding to a list of anonymous type

2 Answers 175 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frédéric
Top achievements
Rank 1
Frédéric asked on 20 Feb 2009, 09:56 PM
Hi,

In my .Net 3.5 project, I have set the report datasource to a list of anonymous type but I get this error in the generated report:

An error has occured while processing Report '':

The method or operation is not implemented.

[sorry for the red text, not able to get rid of the color from here!]

Binding to anonymous type do work with Sql Server 2008 reporting service.

Is there a way to use anonymous type with telerik reporting?

Thanks.

Frederic

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 23 Feb 2009, 04:17 PM
Hello Frédéric,

Is your datasource one of the supported ones listed here: Connecting Data to a Report? I assume you are using LINQ, which would return anonymous objects, so adding ToList() should resolve the issue. If this does not help, please provide the stacktrace and how you bind the report.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Frédéric
Top achievements
Rank 1
answered on 23 Feb 2009, 05:47 PM
Hi Steve,

Yes, I am binding to the result of a linq query.

With .ToList it works perfectly now.

Thank you very much!

Frederic
Tags
General Discussions
Asked by
Frédéric
Top achievements
Rank 1
Answers by
Steve
Telerik team
Frédéric
Top achievements
Rank 1
Share this question
or