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

Consume Reporting REST WebAPI from WPF ReportViewer

3 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 21 May 2015, 01:33 PM

hi!

 I have managed to setup a self-hosted Reporting REST WebAPI server. Now I would like my WPF application to consume a report using that API. Is there a way i XAML to set the reportSource to the WebAPI?

<tr:ReportViewer Margin="10" Height="400" ZoomMode="PageWidth">
   <tr:ReportViewer.ReportSource>
      <trReporting:UriReportSource Uri="Reports\StatusReport.trdx"/>
    </tr:ReportViewer.ReportSource>
</tr:ReportViewer>

 

How can I let the server generate the report and pass it to my application? This would help a lot since I don't want the users of the application to have direct permissions on the database where the report fetches all the data.

All help is appreciated!

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 21 May 2015, 04:47 PM
Hi Andreas,

The Reporting REST service is dedicated to work only with the HTML5 Report Viewer or as a standalone service returning reports rendered in the supported formats.

In the case of the WPF ReportViewer, the viewer's ReportSource must be set at the client and the further report processing and rendering occurs on the client machine. If you want to centralize the processing on a remote machine, you can export programmatically the report on the server, return it to the client and load it in a RadRichTextBox or a RadPdfViewer (check also RadPdfProcessing).


I hope the provided information is helpful.

Regards,
Stef
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
0
Andreas
Top achievements
Rank 1
answered on 05 Jun 2015, 07:35 AM

Thanks a lot!

I now have a working solution where the WPF app gets a filestream of a picture of the report. Great! One thing though, the quality of the image that is return is very blurry. No clean lines and crisp experience that you get when you do a WPF app. Is there a possibility to get a better looking report, quality wise?

Please see the attached file, this is the actual report that is being generated.

0
Stef
Telerik team
answered on 09 Jun 2015, 08:55 AM
Hello Andreas,

In general, after receiving the image from the map tiles provider we apply additional processing of the Map item. Finally a bitmap image is created with standard 96dpi resolution on the server.

Regards,
Stef
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
Andreas
Top achievements
Rank 1
Answers by
Stef
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or