Report Rest service DotNet Core 2.0

4 posts, 0 answers
  1. Tuan
    Tuan avatar
    8 posts
    Member since:
    Apr 2018

    Posted 29 Apr 2018 Link to this post

    I have two project 

    - Project Angular

    - Project existing used Dot net core 2.0 (.NET Core and ASP.NET Core 2.0).

    Now, I want to use Telerik Report Rest Service. Help me.

  2. Silviya
    Admin
    Silviya avatar
    373 posts

    Posted 02 May 2018 Link to this post

    Hi Tuan,

    Based on the provided information, I'm not sure about your Angular project version. However, I would forward two possible approaches - for Angular 4 applications and for lower version of Angular.

    1.1 The HTML5 Report Viewer we provide can be used within AngularJS or Angular 2 applications. One important note about the implementation is that the DIV element, which contains the viewer must be loaded before creating the JavaScript object. For more information, please check the HTML5 Viewer in AngularJS project code library post, where you can see a demo web application.

    1.2 We also provide a version of the HTML5 Viewer designed specifically for Angular 4. You can read more about it in the Angular Report Viewer section of our online documentation. A sample project is available with the installation of Telerik Reporting on the machine (the default install path is C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples\Angular\CLI).

    More detailed documentation on how to add Angular Viewer are provided in:

    How To: Use Angular Report Viewer with Angular CLI
    How To: Use Angular Report Viewer with SystemJS

    2. In order to display the reports, the viewer will require a running instance of Reporting REST service. If adding the service to .NET Core application it needs to target full .NET framework (not .NET Core) because Telerik Reporting NuGet packages are built against full .NET framework - more details are provided in HTML5 Report Viewer in ASP.NET Core 2 help article. You can also create a separate project which targets the standard .NET framework and host the service in it - How To: Add Telerik Reporting REST Web API to Web Application
    Then, HTML5 Viewer will need the address of the service set as viewer's serviceUrl option
    Note that, if the viewer and the service are hosted in separate domains it will be necessary to enable CORS to allow the communication between the viewer and the service.

    Sample .NET Core project could be found at C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples\Examples.

    Regards,
    Silviya
    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
  3. Dev
    Dev avatar
    9 posts
    Member since:
    Oct 2015

    Posted 02 May 2018 in reply to Silviya Link to this post

    Can we use windows compatibility pack and use .net core 2.0?
  4. Silviya
    Admin
    Silviya avatar
    373 posts

    Posted 07 May 2018 Link to this post

    Hello Dev,

    Currently, it is not possible to use the Windows Compatibility Pack, because it is still in progress and has missing components that are required for Telerik Reporting.
    In Announcing the Windows Compatibility Pack for .NET Core MSDN article there are listed APIs that are already part of the Windows Compatibility Pack or are coming in a future update. In general, Telerik Reporting is based on components that aren't officially released in this pack, such as System.Drawing and System.ComponentModel.

    Regards,
    Silviya
    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
Back to Top