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

How to send a report with WCF Service Contracts

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cody
Top achievements
Rank 1
Cody asked on 25 Sep 2018, 07:06 PM

Hi,

So in our app we have a WCF Web Service that is used for all of our business logic. We use WPF as our frontend. The issue we are running into is trying to send a report that is created on the backend to the WPF frontend app using the service contracts through WCF.  Normally we have to add a DataContract attribute to let the service know that it needs to serialize an object. When we try to do this with a telerik report it breaks and does not let us receive the report on the frontend. We have even tried creating a class just for the one report property and it still won't send it. We have tried sending the report as IReportDocument, ReportBook, and InstanceReportSource and none of these work.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Sep 2018, 10:25 AM
Hello Cody,

To send the report definition with a WCF service my recommendation is first to serialize it using our XML serializer and then on the WPF client deserialize the report definition and provide it to the WPF Report Viewer. 

Regards,
Peter
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Cody
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or