Telerik Reports on Asp.net Mvc Core Project not displaying reports.

2 posts, 0 answers
  1. Joe
    Joe avatar
    5 posts
    Member since:
    Aug 2018

    Posted 19 Aug Link to this post

    Hi,

    I have gone through the tuts available in the Telerik docs ( link below ) but was not able to View the report.

    https://docs.telerik.com/reporting/html5-report-viewer-asp-net-core-2

    Would also like to know whether the approach I have done is correct.

    What I have done

    1 Have an existing application which is targeting Asp.net MVC Core ( not net461 but Core) where I have added a folder with the design ( a sample .rdlc designed in Standalone Report Designer) 

    2 Created a REST Service from the Telerik template and configured as per the docs and the end point ( http://localhost:[portnumber]/api/reports/formats) running successfully. 

    3 In the Core project ( point 1 ) , I have consumed the REST Service and is trying to run it but shows error ( I 'm using Javascript ReportViewer Widgets since I can't Change the Target version to net461) .

    Is the above mentioned approach correct. Please let me know your valuable thoughts.

    Error: Error loading the report viewer's templates. (Template = /api/reports/resources/templates/telerikReportViewerTemplate-html).

    TIA

  2. Silviya
    Admin
    Silviya avatar
    134 posts

    Posted 22 Aug Link to this post

    Hello Tia,

    Firstly, I need to explain that reports with. rdlc extension are not designed by Telerik Standalone designer. Reports are in .trdp/.trdx format - Report Designer Tools. Also, please make sure that the viewer's ReportSource is valid.

    The Reporting REST service is used to render the reports for the HTML5ReportViewer requires ASP.NET full-profile to function correctly. The REST service relies on GDI+ APIs that are not available in .NET Core.

    The Html5ReportViewer only requires jQuery and CSS to function, so the reporting front-end will work in .NET Core. A common scenario is to host the Html5ReportViewer in your .NET Core application, and host the REST service separately in a Microsoft environment.

    I suggest to check our CSharp.Asp.NetCoreDemo example project that can be found in CSharp.ReportExamples.VS2017.sln solution in (Telerik Reporting installation folder)\Examples\CSharp (e.g. C:\Program Files (x86)\Progress\Telerik Reporting R2 2018\Examples\CSharp). You can compare the settings of your project with those of the demo and try to adjust them accordingly.
    In order to help you further, please open new support ticket and send us the problematic project.

    We are considering full support for .NET Core as this is a feature requested by many users, as seen from the number of votes for the .net core support without full framework feature request in our Feedback portal.

    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