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

WCF Reporting Service + Project Data Source

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 12 Sep 2012, 02:59 PM
We use Reporting (6.1.12.820) together with a Silverlight 5 project so we built a WCF Reporting Service. The documentation of Telerik Reporting shows how to add a Project DataSource by adding a Component and configure its parameters. However in a WCF Service Project I can't find no Component in the "Add new item" dialog of VS 2010.
What I did was I added a normal class, deriving it from EntityDataSource and compiled the project. Then clicked "Configure Data Source"; a new method "InitializeComponent" gets added to the class however the method is never called. Then I added a second class "classname.designer.cs" and moved the "InitializeComponent" method to this designer class. At least the Data Explorer now shows all fields when the (grey) Designer Page is selected, but when adding the datasource to a Report no fields are displayed at all.

This ends with the big question: how to add a project data source to a WCF Reporting Service?

Regards
Neils

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Sep 2012, 11:57 AM
Hi Neils,

As noted in the Creating a Simple Report and Solution Structure help articles, you should create a regular (windows forms) class library to hold the reports and anything related to them including project data sources. Then you can reference this class library in your actual WCF Service application.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Steve
Telerik team
Share this question
or