WPF ReportViewer cannot connect to WCF Report Service

7 posts, 0 answers
  1. Stephen
    Stephen avatar
    12 posts
    Member since:
    Jul 2010

    Posted 02 Nov 2011 Link to this post

    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
  2. IvanDT
    Admin
    IvanDT avatar
    76 posts

    Posted 08 Nov 2011 Link to this post

    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.

  3. DevCraft banner
  4. Stephen
    Stephen avatar
    12 posts
    Member since:
    Jul 2010

    Posted 08 Nov 2011 Link to this post

    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
  5. IvanDT
    Admin
    IvanDT avatar
    76 posts

    Posted 08 Nov 2011 Link to this post

    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.

  6. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 22 Nov 2011 Link to this post

    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.
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Nov 2011 Link to this post

    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!

  8. Arne
    Arne avatar
    1 posts
    Member since:
    Apr 2012

    Posted 14 Nov 2012 Link to this post

    Does Telerik have plans to provide a WPF version of the ReportServiceClient ? Or does anyone have some sample code that accomplishes this?
Back to Top
DevCraft banner