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

WPF ReportViewer cannot connect to WCF Report Service

6 Answers 191 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 02 Nov 2011, 11:50 PM
Hello

I have created a WPF report service in my web services solution but I cannot find anyway of connecting my WPF client using the ReportViewer to this service. The Silverlight equivalent has a ReportServiceUri property which I have used to test out my web services. Why doesn't the WPF control have the same properties? Is this something that is being added?

This is a bit of a show stopper for us as all our application is written in WPF. Is there an alternative method?

Would really appreciate any help you can give.
Regards
Steve

6 Answers, 1 is accepted

Sort by
0
IvanDT
Telerik team
answered on 08 Nov 2011, 09:53 AM
Hello Stephen,

Because the implementation of the WPF and Silverlight report viewers are not alike, there are a couple of solutions you can use.

You can check the examples provided with your installation and there you can find a WPF application which is using Telerik Reporting as embedded engine. The other approach is to use Reporting WCF service which wraps the ReportProcessor functionality and to create your own Client proxy in your WPF application.

If you're still having problems, please provide more information about your case in order to advise you accordingly.

Kind regards,
IvanDT
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
Stephen
Top achievements
Rank 1
answered on 08 Nov 2011, 09:58 AM
Many thanks for your suggestions Ivan. I am not sure how to create a client proxy for this though. Do you have an example I could look at?

Steve
0
IvanDT
Telerik team
answered on 08 Nov 2011, 06:36 PM
Hello Stephen,

An IReportDocument type is needed in order for the WPF Report Viewer to generate a report, therefore the solution would be to use Telerik Reporting as an embedded engine. In the case when you are using a Telerik Reporting WCF service you can only get the rendered report as XAML and there is nobody to serve the resources.

So in this line of thoughts, you should take in consideration that you can use properly only formats with already embedded resources in the files(e.g. PDF and Image format). In order to use other formats you have to handle the resources for them.

About creating a client proxy for your project you can refer to the following "Getting Started Tutorial" tutorial and especially the "How to: Create a Windows Communication Foundation Client" help article.

Greetings,
IvanDT
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
Iosu Buenetxea
Top achievements
Rank 1
answered on 22 Nov 2011, 03:59 PM
Hi,

 I already have a Silverlight Viewer using a WCF service for reporting.  But, I want to use the same service to serve a ASP .net reporting viewer which is not being hosted in the same website as the SL application.

Is it possible?


Regards,

Iosu.
0
Steve
Telerik team
answered on 25 Nov 2011, 02:11 PM
Hi Iosu Buenetxea,

The Web Report Viewer uses an http handler to serve the report and corresponding resources and cannot utilize the WCF report service instead.

Kind regards,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Arne
Top achievements
Rank 1
answered on 14 Nov 2012, 06:38 PM
Does Telerik have plans to provide a WPF version of the ReportServiceClient ? Or does anyone have some sample code that accomplishes this?
Tags
General Discussions
Asked by
Stephen
Top achievements
Rank 1
Answers by
IvanDT
Telerik team
Stephen
Top achievements
Rank 1
Iosu Buenetxea
Top achievements
Rank 1
Steve
Telerik team
Arne
Top achievements
Rank 1
Share this question
or