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

Can Telerik Reports use Json?

1 Answer 308 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
D
Top achievements
Rank 1
D asked on 07 Apr 2017, 01:42 AM

I'm really having a hard time getting Telerik Reports to do anything for me.  The latest version says it's .NET Core but the first thing you do is remove .NET Core from the project and add the full framework.

I have an existing application that is entirely .NET Core.  This includes front-end, EF, the API, and the middle-tier.  All my business models are .NET Core assembly.

We are not going to add the full framework to any of our existing projects.  Therefore Telerik Reporting must be in assembly which will have a front-end used solely for showing reports selected by the user in our main web application.  However, since all the business models are in a Core only assembly, and I have no interest in duplicating all the models just for this Telerik only project, I am hoping that I can feed the report JSON retrieved from the API.

Is this possible?  I'm looking at the datasources and I'm not clear if one of those would work, or if there is another way to provide this data.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 11 Apr 2017, 01:44 PM
Hello,

We provide Nuget packages for .NET Core type of project, that targets standard .NET framework. If you need to keep the .NET core platform target, then you can host the Reporting REST Service separately as it holds the Reporting Engine that requires the standard .NET framework.

The HTML5 Viewer is a client-side widget. You can place it in any web page and project.
The Reporting REST Service is the one that handles the viewer's requests and delivers content that is produced on the server machine. The service can be hosted in the same project as the viewer or separately: If the service is hosted under different domain, you may need to enable CORS.
If you host in a web farm, you need the corresponding cache storage and read/write access to the configured storage - REST Service Storage.

Details how and where you can configure the service are available in How To: Implement the ReportsController in an application.



About consuming data, pure XML and JSON cannot be used directly. You will need to use a data access layer of .NET business objects which load the JSON data e.g. Connecting Telerik Reporting to OData feeds.

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