How to integrate Telerik Reporting in UWP application
|Product||Progress® Telerik® Reporting|
The solution contains 5 projects:
Common (Universal Windows Class Library) - contains Utilities that are used in the other projects.
RuntimeComponent (Universal Window) - contains native Windows Runtime object that is provided to the viewer.html as a global parameter in the context of the top-level document inside of a WebView. For more information on the approach see WebView.AddWebAllowedObject(String, Object) Method..
ReportingServiceHost (ASP.NET Core project) - hosts a Telerik Reporting REST Service, that renders the report documents and viewer.html that contains an HTML5 Report Viewer with handled ExportEnd and PrintEnd events in which I am invoking a Native Runtime Component methods to handle the print and export on the UWP side. This project is required from the other projects and needs to start with any other project. In production, this should be hosted on a server to serve the report documents to the viewer or other service clients.
ReportViewer (Universal Window) - hosts a WebView that renders the viewer.html and provides the Native Runtime Component to the JS side.
ServiceClient - a simple client for the Telerik Reporting REST service to export a PDF document on a button click.