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

Report Rest service DotNet Core 2.0

3 Answers 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tuan
Top achievements
Rank 1
Tuan asked on 29 Apr 2018, 07:15 PM

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.

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 02 May 2018, 03:07 PM
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
0
Dev
Top achievements
Rank 1
answered on 03 May 2018, 12:21 AM
Can we use windows compatibility pack and use .net core 2.0?
0
Silviya
Telerik team
answered on 07 May 2018, 11:50 AM
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
Tags
General Discussions
Asked by
Tuan
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Dev
Top achievements
Rank 1
Share this question
or