Hi,
according to the release history of Telerik Reporting R2 2016 the WPF ReportViewer now supports showing reports from Telerik Reporting REST Service. So I implemented a web application as described in the docs (http://docs.telerik.com/reporting/telerik-reporting-rest-host-http-service-using-web-hosting) and setup a WPF client application with the help of these articles:
http://docs.telerik.com/reporting/wpf-report-viewer-howto-use-it-with-reportserver
http://docs.telerik.com/reporting/report-engine-connectionstring#rest-service-engine
The XAML of the client now looks as follows:
I also tried setting the Uri-Property of the UriReportSource to the full Uri or leaving out the trdp extension but the viewer only contains this error message:
Attempt by method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost(System.Net.Http.HttpResponseMessage)' to access method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost<T>(System.Net.Http.HttpResponseMessage, System.Collections.Generic.IEnumerable`1<System.Net.Http.Formatting.MediaTypeFormatter>)' failed.
Because I couldn't find much documentation about using the REST services with the WPF ReportViewer I could use some help.
Thanks
Matthias
according to the release history of Telerik Reporting R2 2016 the WPF ReportViewer now supports showing reports from Telerik Reporting REST Service. So I implemented a web application as described in the docs (http://docs.telerik.com/reporting/telerik-reporting-rest-host-http-service-using-web-hosting) and setup a WPF client application with the help of these articles:
http://docs.telerik.com/reporting/wpf-report-viewer-howto-use-it-with-reportserver
http://docs.telerik.com/reporting/report-engine-connectionstring#rest-service-engine
The XAML of the client now looks as follows:
1.
<
tr:ReportViewer
x:Name
=
"ReportViewer1"
HorizontalAlignment
=
"Stretch"
ReportEngineConnection
=
"engine=RestService;uri=http://localhost:19021/api/reports"
>
2.
<
tr:ReportViewer.ReportSource
>
3.
<
telerikReporting:UriReportSource
Uri
=
"TestReport.trdp"
/>
4.
</
tr:ReportViewer.ReportSource
>
5.
</
tr:ReportViewer
>
I also tried setting the Uri-Property of the UriReportSource to the full Uri or leaving out the trdp extension but the viewer only contains this error message:
Attempt by method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost(System.Net.Http.HttpResponseMessage)' to access method 'Telerik.Reporting.Services.HttpClient.HttpRequestHelper.GetResponseFromPost<T>(System.Net.Http.HttpResponseMessage, System.Collections.Generic.IEnumerable`1<System.Net.Http.Formatting.MediaTypeFormatter>)' failed.
Because I couldn't find much documentation about using the REST services with the WPF ReportViewer I could use some help.
Thanks
Matthias